#development

1 messages · Page 180 of 1

hasty ruin
#

I wanna see

kind herald
#

can't

hasty ruin
#

Rename it to mp3

kind herald
#

com.icraze.rune_1.0_iphoneos-arm64.deb.mp3

acoustic imp
#

Sileo ?

hasty ruin
#

Trolled by sileo ipad

kind herald
#

Hello Hydrate. Do I have your permission to upload com.icraze.rune_1.0_iphoneos-arm64.deb.mp3 to this channel? Thanks

torn oriole
#

Swift view modifiers working:

acoustic imp
#

Is pear db swift hm

hasty ruin
#

Yes that’s why it’s buggy

#

Swiftui

torn oriole
#

Notice how the watchOS one works flawlessly

hasty ruin
#

(It does nothing)

torn oriole
#

Swiftui is powering the widgets troll

#

(It’s basically your only option)

hasty ruin
torn oriole
#

YEEEAAAAAAHlfg

kind herald
torn oriole
#

PearDB watchOS build is becoming dedicated to Hugo (nothing PearDB related anymore)

acoustic imp
#

🔥

#

When eta objc rewrite

#

@slim bramble

hasty ruin
#

holy guacamole

acoustic imp
#

Is that a gb?

hasty ruin
#

No

#

Mb

kind herald
torn oriole
#

Mfw bytes

torn oriole
#

If you want to when I push the appropriate build go right ahead troll

#

(Inshallah optimise the Hugo memorial)

primal perch
cloud yacht
kind herald
#

how

cloud yacht
#

Dropped it in the shower

kind herald
#

why would you bring your watch into the shower

cloud yacht
#

It's waterproof

#

And I was wearing it

kind herald
#

it's not waterproof

#

it's water resistant

cloud yacht
#

Ok it's water resistant for 50 meters which is deeper than my shwoer

kind herald
#

what apple watch do you have

#

or did

cloud yacht
#

Series 3

kind herald
#

that's probably why it broke

#

the older your watch gets the weaker the water resistance gets

cloud yacht
#

Well I'm more worried about the fact that the glass broke and the touch screen stopped working and not that maybe water got in it

gentle grove
#

nothing in the world is waterproof

#

so why do we need to not say it

cloud yacht
#

Only one little spot in the center works on the touch screen

#

So it still "works"

#

Was able to take the passcode off

#

Using zoom to bring the buttons to the center

#

But yeah it's basically toast

exotic spire
exotic spire
#

Also he said resistant, not waterproof

kind herald
#

apple watch with no entrance eta wen

exotic spire
gentle grove
#

underwater

#

water has pressure

gentle grove
exotic spire
#

Which is also measured in atmospherical pressure

gentle grove
#

we can never truly say waterproof so why not say it

gentle grove
#

i don't know what you're saying

#

it's not waterproof because eventually, it will be breached

#

that's the same logic as earlier

exotic spire
gentle grove
#

same with most water resistant devices, it's mainly the pressure that's the concern

#

like my Watch

#

it can be underwater until a certain depth

drifting heron
#

I will still call my watch and phone waterproof

#

don’t care

#

I rinse my phone regularly in the sink

drifting heron
tawdry trench
#

squeaky clean

native dune
#

i still dont get what the new discord guilds thing is

frail cedar
#

i don't either

cloud yacht
#

Idk either but I find it funny cause severs are called guilds in the api so guilds are called clans in the api

hasty ruin
drifting heron
#

maximum of 200 members and I guess gaming oriented exclusive servers aka guilds aka clans

timid furnace
#

how do you even make one

slender glade
faint stag
drifting heron
#

only a limited number of servers got the option

#

and no new servers are getting it right now

slender glade
#

this app is doing too much

#

it's fine as is rn

young meteor
#

i can’t imagine any possible use for guilds tbh

#

you don’t want more people to join? turn off invites

faint stag
#

or something

#

idk

placid kraken
#

what should be a priority to implement in my language

  • structs
  • aggregate types (custom types)
  • for loops
  • modules (multiple files)
  • c interfacing
  • type casting
  • preprocesor
  • ability to express binary, hex and octal numbers with 0b, 0x, and 0o respectively
  • variadic arguments
#

i dont know which one to implement because theyre all pretty hard now

reef trail
#

for loops and modules are pretty important

placid kraken
#

my excuse for not implementing for loops is that you can achieve the same behavior with a while loop

#

and modules are a good idea to prioritize because theyll be necessary for c interfacing i think

placid kraken
#

i can sugar basic iterative for loops ie for ... in ...

#

but for ... of ... loops will be harder

#

where the of ... is an array or something

queen ruin
#

@slim bramble before you die, write in your will to send all iCraze blackmail to me

radiant idol
#

knj,nmnvbnbnbbbn

#

u

kind herald
#

Hello Nightwind!

#

How are you?

visual meadow
#

Has anyone here had any luck getting the oracle cloud arm instancr

#

(Or anyone in ashburn wanna delete their instance ,,,, for me?)

trail venture
#

new jb-agnostic issue i found!

while dualbooting ios 15 and 10, 15 is unable to be fully jailbroke, palera1ns and i think dopamines exploit works but it cant properly bootstrap due to permission errors

#

only got far enough to get that screenshot when attemtping to jb with dopamine, then using palera1n to install sileo, while having to uicache -fp it to make the app work, then i get that

timid furnace
#

uh

trail venture
# timid furnace uh

my honest reaction (idk how in the hell a permissions error is the problem with a jailbreak thing)

wooden yarrow
#

maybe C interfacing so it's possible to impl things in programs that can't yet be done in the lang

hallow scarab
lusty jacinth
faint timber
#

Programming horror story

#

Some asshole overwrote the bool type in their header

#

On msys2 it’s a pointer meaning it’s always gonna compare to true

placid kraken
#

for example, strlen, printf, fgets etc are all usable they’re just implicitly defined

#

i want to make a c_strlen to define an interface for exactly what strlen should take in and return in terms of elle’s types and syntax

#
fn c_strlen(Pointer str) -> Long {
    Long result = strlen(str);
    return res;
}
#

currently strlen just returns whatever the type denoted by your variable declaration is

#

because it’s implicit

#

so if i made it a double, strlen would technically return a double even though in reality it doesn’t

#

i suppose an easy way to think about it is char *str = (char *)malloc(1024) in C

slim bramble
#

What are you on about

placid kraken
#

for loops

for Int i = 0 to 10 {
    printf!("%d\n", i * i);
}
#

if you dont specify a type it defaults to an int so you can also do

for i = 0 to 10 {
    printf!("%d\n", i * i);
}
#
pub fn main() {
    while (true) {
        String userInput = input("Enter a number -> ");

        for Long i = 0 to c_strlen(userInput) {
            printf!("%c\n", userInput[i]);
        }
    }
}
placid kraken
#

no its my own language lmao

#

its written in rust though

#

its just sugar for a while loop

#

these are the same

for Int i = 0 to 10 {
    printf!("%d\n", i * i);
}
Int i = 0;

while (i <= 10) {
    printf!("%d\n", i * i);
    i++;
}
harsh junco
slender glade
#

wtf

#

is that a slur for rust users

placid kraken
#

yes

torn oriole
#

@hasty ruin you ain’t ready for this

#

Just saw a comp sci mf’s code that looked exactly like this and it actually took a good minute to start executing 😭

gaunt helm
torn oriole
#

You better believe I timed that shit

slim bramble
#

For what I’m about to say

#

There were a repository on GitHub

#

With a java code which was above 41mb

#

And was full of elif

torn oriole
#

That’s not the answer to my question!

#

detail

granite frigate
granite frigate
#

You’re right

#

I expected 64 bits

north anvil
placid kraken
#

i have this really weird issue

i’m making a buffer size 5 of strings which makes a field of 40 bytes all 0 initialized (size 5 * 8 bytes per string because strings are pointers which are longs)

then i store a string pointer at the memory addr of the buffer which means it stores at the index 0

and then i store another string pointer at index 1 aka buf addr + 1

then i get the value at the 0th index (buf mem addr) and attempt to print the string to stdout but it segfaults so i printed the string pointer as a long to see what the address is and it makes some really big number even though it should only be a regular memory addr, so that addr is definitely invalid and i can’t figure out why considering all the pointer arithmetic is correct and the original value that i stored into the buffer at index 0 is fine

#

ok i figured out the issue 😭

when creating the field of bytes, it ends up creating a field of 40 bytes like i said earlier

however when you add one to the memory address it does not go to the next string it goes to the next BYTE

which means that storing at index 0 is fine but then the string pointer i stored at index 1 was overwriting existing memory hence the huge number

i tried to assign the second string pointer to the buf addr + 8 and it now works

so that means that to make indexing work correctly i need to

String buf[5];

buf[0] = “a”;
buf[1] = “b”;
``` take the number to offset the pointer at buf by and then also *multiply* that offset by the size of the type that the buffer was initialized with, which for example strings are 8 bytes because they’re a pointer to the start of a string

that should be easy enough because of how i wrote the store and load nodes in the parser and compiler but GOD this issue was driving me insane
#

oh they both sent at once horror

#

i guess that’s what happens when internet goes funny

#
pub fn main() {
    String buf[5];

    buf[0] = "Mary";
    buf[8] = "Sid";
    buf[16] = "John";
    buf[24] = "Fred";
    buf[36] = "Cargo";

    Long index = -1;

    Long i = 0;

    while (i <= 36) {
        if (strcmp(buf[i], "John") < 0) {
            index = i;
            break;
        }

        i += 8;
    }

    if (index == -1) {
        printf!("'John' is not in the array\n");
    } else {
        printf!("'John' is at index %d\n", index / 8);
    }
}
``` this is how it’s technically possible without the index offset multiplier lmfao
#

that reminds me that i need to implement step in my for loops

primal perch
#

nfr

placid kraken
#

for Int i = 0 to 100 step 2 for realsies

wooden yarrow
#

tr

gentle grove
gentle grove
wooden yarrow
gentle grove
#

what are you talking about

#

c does account for the size of the type when you're indexing an array of that type

wooden yarrow
#

what why would you say agree on a without statement

#

english

gentle grove
#

what

wooden yarrow
gentle grove
#

wdym

wooden yarrow
#

depending on the type

#

for example: structs with padding

gentle grove
wooden yarrow
#

oh

gentle grove
#

never mind

gentle grove
#

all I know is when I do minefield[5] I get the 6th element

wooden yarrow
#

yeah I think that's standard on all (major) programming languages

gentle grove
#

equivalent to *(minefield + 5 * sizeof(Tile)) in pseudocode

placid kraken
#

when you have some buffer the identifier is a pointer to the start of the data blob

#

when you “index” a buffer it calculates an offset from address of the buffer

wooden yarrow
#

c doesn't even let you do this with pointers unless you cast it to a void*

#

why think all elements are data blobs

placid kraken
#

but as i’ve only used bytes as a data type for my buffers i’ve never realised i need to account for the type when calculating the offset

placid kraken
wooden yarrow
#

.

gentle grove
placid kraken
#

in an expression like

char str[10];

str is a pointer to the start of the data which is 4 * 10 bytes = 40 bytes
when you do c str[3] = ‘a’; it gets the address that the str pointer holds and adds 3 to it to get the location of the 3rd byte
that’s equivalent to c long offset = str + 3; *offset = ‘a’; but of course the size of each type is also multiplied when calculating the offset so it becomes ```c
long offset = str + 3 * sizeof(char);
*offset = ‘a’;

#

it now implicitly does this multiplication when you index a buffer in elle

gentle grove
placid kraken
#

yeah when creating the buffers i only ever used c functions to write to it so i never realised this when indexing manually

placid kraken
#

the only time i’ve indexed it manually was with a byte buffer so i never noticed

#

it makes sense in retrospect but i’m silly

placid kraken
gentle grove
gentle grove
placid kraken
wooden yarrow
placid kraken
#

unless they just internally decrease it by 1 lmfao

gentle grove
placid kraken
#

yeah i’m assuming they mean about arrays starting at 1

gentle grove
placid kraken
#

doesn’t make much sense in pointer offsetting

wooden yarrow
#

put it in code blocks

#

ig

gentle grove
#

Weird

placid kraken
#

because going to the 1st element would take you to a place past the beginning of the memory allocated

#

in theory

#

but they could easily just take whatever index the user passes and decrease it by 1 and wow magic u have the same behavior

gentle grove
# wooden yarrow idk

mfs at discord used a different markdown processor on iOS compared to desktop or something

placid kraken
#

on desktop they use simple-markdown iirc

#

on mobile they use a custom native implementation on both ios and android

wooden yarrow
gentle grove
placid kraken
wooden yarrow
#

wtf

#

weird ass markdown

placid kraken
#

the markdown is more or less the same on both platforms

#

just small issues here and there

gentle grove
placid kraken
#

i can’t complain too much because discord gives us a function that takes markdown text and turns it into react you can render

#

which means we don’t have to do any of that ourselves

placid kraken
gentle grove
#

oh

placid kraken
#

discord conveniently made a function we can call

#

that takes markdown text and returns react we can render

proud geyser
#

n my server returns this error {"time":"2024-05-21T10:58:44.912802-07:00","level":"ERROR","prefix":"-","file":"listRelationships.go","line":"112","message":"Error broadcasting updated relationships:write tcp 10.0.0.246:8080->10.0.0.110:60843: write: broken pipe"} {"time":"2024-05-21T10:58:45.043848-07:00","level":"ERROR","prefix":"-","file":"websocketManager.go","line":"64","message":"WebSocket read error:read tcp 10.0.0.246:8080->10.0.0.110:60843: read: connection reset by peer"}

reef trail
#

does anyone know how to contact the pods grant dev? i’d like to update it for airpods pro usb c

shrewd moth
warped sparrow
#

What does rocketbootstrap even do?

#

Why do some tweaks need it

orchid fulcrum
#

Afaik its for ipc

torn oriole
visual meadow
#

has anyone had issues with apple watch not showing in xcode

#

im about to just reset my watch man

#

ive tried restarting mac iphone watch and upgrading xcode

#

none worked

radiant idol
native orbit
visual meadow
#

Fuck thid shit man

#

actual piece of garbage

#

worst fucking software

#

makes me want to remove myself

visual meadow
#

WElp

#

resetting the watch did not fix it

#

how fun and entertaining

#

the trust computer popup showed up

#

but in xcode the watch does not appear

torn oriole
#

Make sure to restart your phone n shit

#

Among other things such as your Mac

#

Also try a hard connection from the phone trollartistic

visual meadow
#

it said developer mode disabled, lets see if enabling it worked

#

i am

#

the phone is inserted

#

it says waiting for first unlock

#

its unlocked

#

okay i think its working now

acoustic imp
#

Any options other than podsgrant for AirPods pro 2s ?

#

On ios 15.1.1

tepid olive
#

Hi

#

I need to RE this function: - DCDevice generateTokenWithCompletionHandler:
how to find the lib where this function is written to

#

I need to find out how the token is generated

orchid fulcrum
torn oriole
#

DCDevice.current.generateToken jumpscare

acoustic imp
#

would anyone pay for like airpod hold actions custumization?

#

options
siri
play/pause
track forward
track back
noise control

kind herald
#

isn't that a stock feature with airpods

restive ether
torn oriole
#

Pros do yes

#

Even pro 1’s

acoustic imp
torn oriole
#

Or is that just pros

acoustic imp
#

jus pros i think

#

i only have pros

torn oriole
#

Fr I’ve been living the life ig

acoustic imp
torn oriole
#

Yeah

acoustic imp
#

but also i found a way to switch to adaptive transparency on ios 15 ig

hollow oar
granite frigate
frail cedar
acoustic imp
#

What’s wrong with this, I typed on mobile btw

#

@interface BCBatteryDevice : NSObject

  • (NSInteger)productIdentifier;
    @end

%hook

  • (NSInteger)productIdentifier{
    int origin = %orig;
    return origin == 8228 ? 8206 : origin ;
    }
    %hook
timid furnace
#

semicolon?

acoustic imp
#

Ye it’s still thros

frail cedar
#

i dont see it listed

acoustic imp
#

Right

#

Thx

#

BCBatteryDevice

#

I fg

#

AirPods Pro 2 iOS 15.1.1 💪💪

#

If anyone cares

#import <UIKit/UIKit.h>
@import Foundation;

@interface BCBatteryDevice : NSObject

  • (NSInteger)productIdentifier;
    @end

%hook BCBatteryDevice

  • (NSInteger)productIdentifier{
    int origin = %orig;
    return origin == 8228 ? 8206 : origin;
    };
    %end
frail cedar
#

whats that do

acoustic imp
#

Changes the AirPods Pro 2 icon from head phones to the AirPods Pro icon

#

Causes issue tho

frail cedar
#

Oepsie whoepsie

torn oriole
#

battery indicator said nah im out

queen ruin
hexed knot
#

@acoustic imp happy birthday big woman

radiant idol
#

@acoustic imp happy birthday!

timid furnace
#

@acoustic imp hbd!!

cloud yacht
#

@acoustic imp Happy Day of Birth

kind herald
#

@acoustic imp Happy Day of Delivery.

lime pivot
kind herald
#

papyrus font terminal

lime pivot
#

I don't want to know how that would work in NewTerm

kind herald
#

is it on macOS

#

I'll try it

#

where papyrus font

wooden yarrow
#

@acoustic imp happy birthday !!

slim bramble
fading shell
slim bramble
slim bramble
fading shell
slim bramble
fading shell
slim bramble
fading shell
#

Hi rootful, I’m fakefs

slim bramble
fading shell
#

It is

#

Let’s stop

slim bramble
placid kraken
#

this is starting to actually look like a real programming language

fn c_strlen(Pointer buf) -> Long {
    Long res = strlen(buf);
    return res;
}

fn input(String message) -> String {
    Long stdin = fdopen(0, "r");
    Char buf[256];

    printf(message);
    fgets(buf, 256, stdin);
    buf[c_strlen(buf) - 1] = '\0';

    fflush(stdin);

    String result = malloc(c_strlen(buf) + 1);
    strcpy(result, buf);

    return result;
}

pub fn main() {
    String winner = malloc(256);
    Int highestScore = 0;

    while (true) {
        String person = input("Enter a person's name: ");

        if (strcmp(person, "stop") == 0) {
            free(person);
            break;
        }

        printf!("Enter %s's score: ", person);

        String scoreInput = input("");
        Int score = atoi(scoreInput);
        free(scoreInput);

        if (score > highestScore) {
            highestScore = score;
            strcpy(winner, person);
        }

        free(person);
    }

    printf!("The winner is %s with a score of %d\n", winner, highestScore);
    free(winner);
}
#

its still missing so much stuff and its already at like 3700 lines of code which is slightly concerning

slim bramble
placid kraken
#

how does it look like java..?

#

oh the capitalized types?

#

i await for the knowledge of how i can implement dynamic classes to just pop into my brain

#

because i have absolutely no clue how that would work internally

bright lance
#

error: Makefile:20: *** missing separator. Stop.

Cant seem to find the error

wooden yarrow
placid kraken
#

because im pretty sure it does

wooden yarrow
#

yeah

#

i was thinking in rust

#

but

slim bramble
#

There is only Java and all the java ripoffs that uses String

placid kraken
#

in elle String types are just aliases for Pointer types which are aliases for the Long type

#

because strings are just pointers to the start of the string buffer

wooden yarrow
#

💀 \

acoustic imp
acoustic imp
acoustic imp
acoustic imp
acoustic imp
hasty ruin
#

happy manufacturing date @acoustic imp

acoustic imp
#

Thanks 😭

lime pivot
#

happy day of SoC fusing @acoustic imp

acoustic imp
#

Thanks 😆

torn oriole
#

This man

#

Happy birthday him

#

We must get him to use every emoji

#

@acoustic imp

acoustic imp
#

Thanks 🤫🤔

slim bramble
#

@torn oriole

placid kraken
#

@acoustic imp happy womb eviction day

acoustic imp
slim bramble
torn oriole
#

Sadly I would get decapitated by the top j

serene hawk
#

happy level up day @acoustic imp

lime pivot
#

you're saying that like it won't be entertaining?

slim bramble
#

A lot entertaining for the chart

acoustic imp
harsh junco
acoustic imp
#

Thank u 🎉

warped sparrow
#

@acoustic imp happy birthday!

placid kraken
#

@slender glade fucking tangent planes

#

they couldve taken the tangent to a curve and be done

#

BUT NOOOO WE NEED TANGENT PLANES TO MULTIVARIABLE FUNCTIONS

#

BECAUSE WERE MATHEMATICIANS AND WE LIKE TO BE COMPLICATED

radiant idol
placid kraken
#

idk maybe

warped sparrow
#

Wtf is this shit

placid kraken
#

i am doing gcse maths

#

this is what im doing on my own

warped sparrow
warped sparrow
#

I see

placid kraken
#

physics paper 1 had me crying

warped sparrow
slender glade
placid kraken
#

yeah it was

warped sparrow
#

Physics was easy af

placid kraken
warped sparrow
#

THEY WERE SO HARD

placid kraken
#

WERE YOU DOING TRIPLE OR COMBINED

warped sparrow
placid kraken
#

oh thats why then

#

my condolences

warped sparrow
#

DO YOU DO COMBINED?

warped sparrow
placid kraken
#

basically idk if youve seen but physics paper 1 was uhhh

warped sparrow
placid kraken
#

i revised the history of the atom and the required practicals because i knew everything else

#

only for none of them to show up on the paper

#

insteAD!!!

warped sparrow
#

i revised the only things i needed

placid kraken
#

WE HAVE 44 MARKS OF EQUATIONS WITH RECURRING DECIMALS AND 1029831920 CONVERSIONS

warped sparrow
#

wait that makes no sense

placid kraken
#

THEY WANTED US TO GIVE THE MASS OF A RING IN KG

warped sparrow
#

Now thats just stupid

#

And unnecessary

placid kraken
warped sparrow
#

what exam board do you do?

placid kraken
#

aqa

warped sparrow
placid kraken
warped sparrow
#

But for maths i do edexcel

warped sparrow
#

😭

placid kraken
warped sparrow
placid kraken
warped sparrow
placid kraken
#

i didnt take the first one

warped sparrow
#

Why

placid kraken
#

secret

#

either way

#

paper 2 was nice

warped sparrow
#

yeah

#

it was easy af

placid kraken
#

i revised power of nature specifically exposure, storm on the island, and the prelude because everyone was predicting it

#

i didnt mind kamikaze at all though

warped sparrow
#

im so happy i dont have to do anything macbeth or animal farm related anymore

placid kraken
#

because kamikaze is one of my favourite poems

warped sparrow
#

And FUCK THOSE POEMS

warped sparrow
placid kraken
#

and i compared it to remains

warped sparrow
#

KAMIKAZE IS SO GOOD

placid kraken
#

I REMEMBERED LIKE 13-14 REMAINS QUOTES

#

I WAS FLYING THROUGH THAT PART

warped sparrow
placid kraken
#

I WROTE LIKE 3 PAGES AND COULDVE WRITTEN WAY MORE

warped sparrow
#

Your definitely getting straight 9's

placid kraken
#

me when the past 5 years of my english education all came up to this moment of writing about someone who cba to do their laundry

placid kraken
warped sparrow
#

that poem was stupid af

#

I just kept yapping about how nature relaxes humans

placid kraken
#

my predictions (not given by teachers but based on what I think ill get):

english: 7
biology: 8
chemistry: 8
physics: 9
computer science: 9
maths: 9
further maths L2: 8
statistics: 7
dec: distinction

hasty ruin
#

neek

placid kraken
#

can we talk about the state of computer science

warped sparrow
#

My teachers think ill become a drug dealer 😃

warped sparrow
#

ITS A MESS

#

I CHANGED MY OPTIONS FRIM COMPUTER SCIENCE TO IMEDIA IN THE FIRST WEEK

placid kraken
#
pub fn main() {
    String winningTeam = malloc(256);
    Int highestScore = 0;

    while (true) {
        String team = input("Enter a team name: ");

        if (strcmp(team, "stop") == 0) {
            free(team);
            break;
        }

        printf!("Enter %s's score: ", team);

        String scoreInput = input("");
        Int score = atoi(scoreInput);
        free(scoreInput);

        if (score > highestScore) {
            highestScore = score;
            strcpy(winningTeam, team);
        }

        free(team);
    }

    printf!("The winning team is %s with a score of %d\n", winningTeam, highestScore);
    free(winningTeam);
}
``` i wrote the last CS paper 2 question in elle
#

obviously i didnt in the actual exam, my answer in the exam was more like

function findHighestScoringTeam(teams: string[], scores: number[]) {
    let highestScore = -1;
    let team = "";

    for (let i = 0; i < teams.length; i++) {
        if (scores[i] > highestScore) {
            highestScore = scores[i];
            team = teams[i];
        }
    }

    if (highestScore === -1) {
        throw new Error("Invalid teams or scores");
    }

    return [team, highestScore];
}

function main() {
    const teams = [];
    const scores = [];

    while (true) {
        const team = prompt("Enter a team name: ");
        
        if (team === "stop") break;

        const score = prompt(`Enter ${team}'s score: `);

        if (isNaN(+score)) {
            console.log("Invalid score");
            continue;
        }

        teams.push(team);
        scores.push(+score);
    }
    
    const results = findHighestScoringTeam(teams, scores);
    console.log(`The winning team is ${results[0]} with a score of ${results[1]}.`);
}
#

this is the shortest i could make it while still getting full marks but this was after the fact

winningTeam = ""
highestScore = 0

while (true)    
    team = input("Enter a team name: ")
    
    if team == "stop" then
        break
    endif

    score = int(input("Enter score"))

    if (score > highestScore) then
        highestScore = score
        winningTeam = team
    endif
endwhile

print("The winner is", winningTeam, "and a score of", highestScore)
#

this is in ocr exam reference language

placid kraken
#

im glad i did

#

well

#

partially

#

the studies are interesting

#

but i dont wanna have to write about them

warped sparrow
placid kraken
#

do you take cs still..?

#

like did you take a paper on it?

#

Hey Rosie,
This is your personalised Compulsory homework. You need to answer every question correctly to complete it.

harsh junco
#

5/8

gentle grove
placid kraken
#

@warped sparrow you should try my azalea theme

warped sparrow
#

I quit it the same week i started

#

And switched to creative imedia

warped sparrow
#

I dont even do sparx anymore

placid kraken
#

me neither

#

azalea now only exists as a proof of concept that i know how to inject into the react internals of a react app

#

🥲

#

https://tio.run/ - an open source tool that allows you to interpret pretty much any language you can imagine in your browser

young meteor
#

recreational 420 you say?

placid kraken
fading shell
#

that's pretty good then

queen ruin
#

Happy birthday preferred 16Player dev (don’t tell bibi) @acoustic imp

#

🎉

acoustic imp
#

jus got a watch 9 am i cooked on ios 15 ?

#

(i cant get legizmo)

#

or well the lwatch OS 10 one

kind herald
#

this might work

acoustic imp
#

Doesn’t work

torn oriole
#

Why can’t you legizmo

acoustic imp
torn oriole
#

Skill issue

acoustic imp
hasty ruin
main apex
torn oriole
#

i said happy birthday so all is forgiven

hasty ruin
#

his birthday was yesterday now anyway

#

it's fair game

torn oriole
main apex
hasty ruin
#

shit timezone then

torn oriole
#

late birthdayer, kill this man

hasty ruin
#

anything behind GMT is cringe

#

you on the wrong side of the world 🗣️

main apex
torn oriole
hasty ruin
torn oriole
#

true

#

but im not behind gmt at least

acoustic imp
acoustic imp
#

Why’s the date messed up

#

(I want bold)

radiant idol
#

Because you’re a perfectionist

kind herald
#

Hello Nightwind!

#

How are you?

acoustic imp
#

I don’t like watch os 10

#

So much going on

radiant idol
#

Cry

acoustic imp
frail cedar
#

Just a bit to get used to at first

acoustic imp
acoustic imp
#

Il probly jus turn on reduce transparency anyway

#

Watch 4 -> 9

#

Can you not take a screenshot anymore ?

kind herald
#

you have to enable it in accessibility settings

#

I think it's in accessibility settings at least

#

I know you have to enable it manually though

frail cedar
#

in legizmo

#

and then enable it in the watch app

acoustic imp
#

Ok

acoustic imp
#

My watch has the same amount of storage my phone does 😭

cloud yacht
#

bruh

#

my phone has 32x the stroage my watch has

slender glade
#

@grim sparrow when did swift gain stable ABI? 12.2 right?

warped sparrow
gentle grove
#

.fm

worldly sundialBOT
slender glade
rugged gull
#

Sorry if this is obvious but I'm new to all of this. There is a functino in the class VideoPlayer called (void)pause. How can I call that pause function in a different hook so I can pause the video from somewhere else?

#

Or do I have to somehow get the VideoPlayer instance

serene hawk
# rugged gull Or do I have to somehow get the VideoPlayer instance

yes, if you need to call the pause method of the VideoPlayer class you need to get an instance of that class and then call that from within another function ```obj-c

// don't forget to declare your interface
@interface VideoPlayer : SomeObject

  • (void)pause;
    @end

VideoPlayer *videoPlayer;

%hook VideoPlayer

  • (id)init { // or any other init method
    videoPlayer = %orig;

    return videoPlayer;
    }
    %end

%hook YourOtherClass

  • (void)someMethod {
    %orig;
    [videoPlayer pause];
    }
    %end```
rugged gull
#

That’s what I was thinking

#

Thanks!

serene hawk
#

btw is @indigo peak MIA?

radiant idol
serene hawk
hasty ruin
#

he probably has exams or something so isn't on discord much

serene hawk
#

thank you, thats good to know. haven't seen him here in a while

tepid olive
#

yeah I also haven't been on discord in a while and nobody's asked about me 😭

#

because regents review and just generally alot of work

#

(regents = new york state administered finals, for the people that aren't new yorkers)

frail cedar
#

@placid kraken Flora is injecting into some stuff it shouldn't be for some reason

#

these two processes crash every 5ish minutes due to Flora

#

It breaks watch notifications

frail cedar
#

I don't know

#

In choicy it shows on every single process

#

Only other tweak that does that is cr4shed

opal ridge
#

uikit is loaded somehow

#

potentially indirectly

frail cedar
#

I just explicitly disallowed it for the ones it was breaking in choicy

hasty ruin
cloud yacht
tawny stag
#

Anyone knows a tweak, that can monitor my network requests on my iPhone?

serene hawk
#

you can do that with FLEXing

#

but you can also just mitm

faint stag
#

i mean yeah mitm is probably better but you'll have to bypass ssl pinning in some cases (ofc)

placid kraken
#

i can just add to it i guess

tawny stag
hasty ruin
tawny stag
hasty ruin
#

make sure you have flex open in the same process that’s making the requests

#

and the app may use ssl pinning

slender glade
hasty ruin
slender glade
#

none of ur business.

hasty ruin
tawny stag
#

[[flex]]

faint lionBOT
#
Flex

GNU lexer derived from Lex

Author

Jay Freeman (saurik)

Version

2.5.35-5

Price

Free

Bundle ID

flex

tawny stag
#

[[flex3]]

faint lionBOT
#
Flex 3

Develop your own tweaks and share them on the Flex Community Cloud

Author

John Coates

Version

3~EarlyAccess4

Price

Free

Repo
Bundle ID

com.johncoates.Flex3

tawny stag
#

Or whatever I need

#

Ohhh now I get it

tawny stag
#

I wish I could export the saved requests 😭

placid kraken
#

that’s what yan sent in dms

crisp frost
warped sparrow
tawny stag
#

@hasty ruin you know if I could record the whole traffic since app launch?

cloud yacht
#

Probably just use mitm proxy

faint stag
#

smh

faint stag
#

still

tawny stag
cloud yacht
#

I mean you can still use it, as long as your computer can be connected to

faint stag
#

bru

placid kraken
#

newton's approximation algorithm (real)

pub fn main() {
    Double x = 2;
    Double a = x;

    for _ = 0 to 4 {
        a = a - (a * a - x) / (2 * a);
        printf!("sqrt(%f) is approx %f\n", x, a);
    }
}
acoustic imp
#

how do i use libroot, i did the build and copy to theos, but its not working

faint timber
#

should be part of theos

#

.

acoustic imp
#

i just updated it and still doesnt work

radiant idol
acoustic imp
#

@slim bramble smh

#

il jus copy paste the .h file

faint timber
#

It’s missing from Theos

#

Check Theos local vs GitHub

acoustic imp
hasty ruin
#

just do make update-theos

acoustic imp
#

theos.dev says there is a specific on

hasty ruin
#

in tweak dir

acoustic imp
#

do i like reinstall theos? or run the install script?

tepid olive
proud geyser
#

wsgg gang

acoustic imp
frail cedar
#

Since I'm not using it in theos projects

acoustic imp
slim bramble
granite frigate
#

git hooks being malicious is something I never considered

stone shoal
#

Is there any info available on how banks detect 'developer mode' enabled?

hasty ruin
#

do you have an example of such an app?

#

haven't seen that before

stone shoal
#

The app I'm analyzing isn't public, but I'll see if I can find an example

#
App Store

‎Agora sim! Estamos de cara nova! E com novidades!
O app "gov.br" (antes Meu gov.br) está renovado para que você tenha uma experiência mais simplificada:

  • Para começar, você pode acessar o app sem fazer o reconhecimento facial e se precisar criar sua conta gov.br, já faremos pelo app.
  • Você p…
hasty ruin
#

i see

#

i'll look into bypassing it soon

radiant idol
stone shoal
#

@radiant idol any idea in which direction to look?

radiant idol
#

Putting it in a decompiler is your best option

stone shoal
#

The app is heavily obfuscated. If I know what kind of technique is used for this, I can start looking. It's just that there's no documentation anywhere on how you could potentially detect this, so I don't have a starting point

visual meadow
#

the sysctl

fickle plank
#

What text editor you guys are using?

#

Which one is better for beginner?

harsh junco
fickle plank
#

But isn’t VsCode helps a lot too?

#

Because i don’t know objective-C and coding too much

#

I will start to learn to develop tweak. And i will try to do one good tweak. I will learn from NightWind’s tutorial. I looked in today. It’s detailed and cool to have. Thanks NW

orchid fulcrum
#

Vscode my beloved

faint timber
#

eww fuck outa here

gentle grove
#

as far as coding

#

please dont use nano

fickle plank
#

VsCode is good?

gentle grove
#

It is and it's not even a good one like vim

gentle grove
#

anything else is a pain

fickle plank
#

You know nightwind’s tutorial?

fickle plank
fickle plank
gentle grove
orchid fulcrum
faint timber
#

or neovim

orchid fulcrum
#

*Neovim no
*clion paid

I see the memes but in all seriousness it has a lot of functionality out of the box and via extensions. Like connecting to wsl, terminal support, integrated git etc

#

Its one of the good non-xcode alternatives out there for ios dev (not that xcode is good, at least its native)

#

Imo

warped sparrow
#

How would i go about creating a jailbreak bypass for an app?

#

its a banking app that searches for files in /var

#

iirc its the /var/jb folder

warped sparrow
frail cedar
#

you'd want to hook the methods it uses to check for files existences

#

probably NSFileManager

native orbit
#

i fw it when it works right, i despise it when it dont

orchid fulcrum
#

I hate it since it broke my syntax coloring once in my vm setup

#

Like its the most basic thing about ides 💀

main apex
#

And indexing frying the cpus

frail cedar
#

Xcode 15 still has UI for if you disable ARC

cloud yacht
#

Vscode is a decent ide but it has its issues

frail cedar
#

Is good thing

#

And cool

#

it supports a lot of stuff

gentle grove
#

what is ARC

#

automatic reference counting trol

frail cedar
#

Yes

gentle grove
#

oh is it actually

#

oh yeah of course it is

cloud yacht
#

Imagine if Xcode was cross platform

acoustic imp
#

apple would cry bc you wouldn't need to buy a 1000$+ device from them to use it

kind herald
#

hackintosh

acoustic imp
#

also how do i get in contact witha dev(foxfort) about a tweak compatability issue

kind herald
acoustic imp
kind herald
acoustic imp
acoustic imp
#

i messaged him on twitter

#

had to turn off firefox protection thing

gentle grove
acoustic imp
#

Could/should I keep my import/export prefs in the main page or add them to my like utils menu ?

young meteor
acoustic imp
timid briar
#

They wouldn’t HAVE TO if that guy wasn’t in charge

naive sedge
#

Say I wanted to automatically deploy palera1n with Sileo, OpenSSH with a set password, and some additional debs, without interaction, is that possible?

#

Furthermore is it possible to take a just restored device and automatically activate it and deploy palera1n?

#

All without physical interaction, only USB

velvet path
#

USB isn't enough (that only gets you to Recovery)

naive sedge
#

(This is a modified iPhone with no battery and the control over FORCE_DFU, and the ability to completely cut power)

velvet path
#

ah

naive sedge
#

Basically trying to make it so that the iPhone can be remotely completely wiped and set up fresh if anything goes wrong

granite frigate
#

Remotely deploying and jailbreaking an iphone sounds cool af

polar marsh
gentle grove
visual meadow
#

anyone know how to relocate the dylib this specific symbol targets to a different dylib

naive sedge
#

How possible would it be to hook all attempts of a jailbroken iPhone to read/write to a SIM card, and then perform those operations on a remote SIM card in a generic smart card reader?

#

Or is the SIM card directly accessed by the baseband or something and thus not interceptable by the OS?

#

Like I mean intercept the raw SIM card commands, enough that celluar would work

native dune
#

what are u cooking up

fickle plank
#

Can anyone help me to setup OpenSSH between Mac and iOS? I am doing tweak develop tutorial. This part i can’t understand

naive sedge
native dune
#

ah

naive sedge
#

I guess I can always just use the pico I already have for FORCE_DFU and tamarin and solder to the SIM pins, then just forward that over USB

#

would have to decode back into whatever packet format, then send that to the smart card reader for it to re-encode

#

pico is basically going to be life support for this poor iPhone

native orbit
#

Your development team has reached the maximum number of registered iPhone devices. BRUH

primal perch
#

Your development team has reached the maximum number of registered iPhone devices. BRUH

warped sparrow
#

Your development team has reached the maximum number of registered iPhone devices. BRUH

native orbit
#

i already got like 5 😭

kind herald
#

15th???

#

Bruh damn

native orbit
torn oriole
#

How

#

Literally how

native dune
#

Surprised fedex dude didn’t take them

timid furnace
#

Lmaoo

faint stag
hollow oar
#

How can I upgrade my python version to 3.11 instead of using 3.9 on iOS?

faint stag
faint stag
hollow oar
#

One of the pip modules required 3.11 :/

faint stag
#

i mean

#

python on ios isn't gonna work for the most part

#

cause like nothing is built for ios

#

like if you wanted to install cryptography or cffi, wheel is gonna fail

#

lmao

hollow oar
#

Rip

lime pivot
#

I'm trying to remember back to an incredibly long time ago when baseband unlocks were still relevant

wooden yarrow
lime pivot
#

prob never

slender glade
wooden yarrow
#

not to the sim card itself

slender glade
#

no idea

#

just a general idea of where i myself would start

wooden yarrow
#

i mean if the sim card is connected to the baseband itself

#

which it most likely is

#

i would think starting from the baseband

#

or some pin on the mobo

#

would make the most sense

#

but idk

placid kraken
#

@radiant idol imagine youre writing code and you get this error

[FATAL ERROR]
The underlying instruction under the volatile pointer changed while trying to access the inner value.
There may be a race condition, or the volatile pointer was invalidated without disposing of the instruction.
``` what do you do
wooden yarrow
#

like

#

function ptr?

placid kraken
wooden yarrow
#

what the hell is a instruction member

wooden yarrow
placid kraken
#

it throws this if the instruction in the volatile enum member changes between the match statement to get the correct block's return statement and the match to get the value in the actual return instruction

placid kraken
# wooden yarrow what the hell is a instruction member
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub enum Instruction {
    Add(Value, Value),
    Subtract(Value, Value),
    Multiply(Value, Value),
    Divide(Value, Value),
    Modulus(Value, Value),
    BitwiseAnd(Value, Value),
    BitwiseOr(Value, Value),
    Compare(Type, Comparison, Value, Value),
    Copy(Value),
    Return(Option<Value>),
    JumpNonZero(Value, String, String),
    Jump(String),
    Call(String, Vec<(Type, Value)>),
    Cast(Value),

    // Useful for when we implement arrays
    Alloc4(u32),
    Alloc8(u64),
    Alloc16(u128),
    Store(Type, Value, Value),
    Load(Type, Value),
    Literal(Value),
}
wooden yarrow
#

I ain't debugging that

#

:3

wooden yarrow
wooden yarrow
radiant idol
#

I am

placid kraken
#

hoW DOES C DO ARITHMETIC OPERATIONS SO NICELY

#

I HAD TO COME UP WITH THIS WHOLE THING

wooden yarrow
#

and has had time to improve until now

placid kraken
#
  • declaring a variable with a double but returning a long throws an error
  • where you have x and y, if x is an int and y is a long, cast x to a long and keep y the same
  • where you have x and y, if x is a double and y is an int, cast y to a long and then to a double
#

hell..............

placid kraken
#

idk i tried to recreate donut.c in elle and was humbled

wooden yarrow
#

if I had to recreate donut.c by myself I would simply die

placid kraken
#

look it throws this error

wooden yarrow
placid kraken
#

and it fails in this part

placid kraken
# wooden yarrow I mean it uses a lot of unusual things to code golf it

i mean if you call this unusual

pub fn main() {
    Double aa = 0;
    Double bb = 0;
    Double i = 0;
    Double j = 0;

    Double z[1760];
    Char b[1760];

    String lighting = ".,-~:;=!*#$@";

    printf("\x1b[2J");

    while (true) {
        memset(b, 32, 1760);   // Fill array b with spaces
        memset(z, 0, 7040);    // Fill array z with zeroes

        Double j = 0;

        while (j < 628) {
            Double i = 0;

            while (i < 628) {
                Double c = sin(i);
                Double d = cos(j);
                Double e = sin(aa);
                Double f = sin(j);
                Double g = cos(aa);
                Double h = d + 2;
                Double dd = 1 / (c * h * e + f * g + 5);
                Double l = cos(i);
                Double m = cos(bb);
                Double n = sin(bb);
                Double t = c * h * g - f * e;
                Double x = dd * 40 + 30 * (l * h * m - t * n);
                Double y = dd * 12 + 15 * (l * h * n + t * m);
                Double o = x + 80 * y;
                Double nn = 8 * ((f * e - c * d * g) * m - c * d * e - f * g - l * d * n);

                if (y < 22 && y > 0 && x > 0 && x < 80 && dd > z[o]) {
                    z[o] = dd;

                    if (nn > 0) {
                        b[o] = lighting[nn];
                    } else {
                        b[o] = 0;
                    }
                }

                i += 2;
            }

            j += 7;
        }

        printf("\x1b[H");

        for Long k = 0 to 1761 {
            if (k % 80) {
                putchar(b[k]);
            } else {
                putchar(10);
            }
        }

        aa += 4 / 100;
        bb += 2 / 100;
    }

    return 0;
}
#

its just a bunch of arithmetic operations

wooden yarrow
#

so hard to read

placid kraken
#

lol true

wooden yarrow
wooden yarrow
#

Elle == C

placid kraken
wooden yarrow
#

fr

placid kraken
#

ah yes lemme cast 360 to a double quickly

wooden yarrow
#

can u not

#

like

#

360.0

#

can't llvm do that for you

#

or does it need to be babyfed

placid kraken
#

the . character still throws an error in the lexer

wooden yarrow
#

nfr

placid kraken
#

you can do like Double x = 4 / 100; tho

wooden yarrow
placid kraken
#

im pretty sure you can

wooden yarrow
#

.

radiant idol
#

What if you want like

#

3.145159…

placid kraken
#

idk will implement real decimal points soon

#

oh so it does support it

#
export function w $main() {
@start
    %i.1 =d copy d_0.1
    %i.2 =d copy d_0.2

    %res =d add %i.1, %i.2
    %f =w call $printf(l $main.7, ..., d %res)
    ret 0
}
data $main.7 = { b "%f\n", b 0 }
#

not enough decimal places to see the 0.30000000004

sacred orbit
#

does anybody know the entitlement so I can use custom fonts that are installed in general > fonts?

radiant idol
#

Smh

slim bramble
#

only option is to @him in a tweet

acoustic imp
slim bramble
#

Lucky

radiant idol
#

What's the best way to close and reopen an app?

#

programatically

#

Preferably something like a soft reopen

#

no I mean like

#

I want the user to just see it as the app "refreshing" if that makes sense rather than it closing and reopening

hasty ruin
#

thats what he normally does

acoustic imp
#

no but when i was taking a bit he sent like messages that were kind odd

#

idk no

orchid fulcrum
acoustic imp
#

He responded and said he’d work on it tmro

#

Oh?

#

I haven’t been here long

#

He like makes stuff and dips?

#

Oh, so he jus don’t rly do any sorta support for any of his tweaks

#

He claimed he “supported” many other music player tweaks for exiwall

#

No slurs yet 👍

#

But I think I got him mad when I took a sec to understand what he was asking

radiant idol
#

ok then what about just closing and reopening

timid furnace
#

(no dont do this lmao)

radiant idol
#

yes

#

yes

#

all I need to do is kill the app and automatically reopen it

#

that is all

#

alright

orchid fulcrum
#

There is exitAndRelaunch method in FBSystemService.h which sounds like what you want but i have 0 idea what it actually does

placid kraken
#

how tf do you get real varadic arguments in C

#

like if i

fn add(Int size, ...) {
    Int res = 0;
    Variadic list[size];

    for _ = 0 to size - 1 {
        res += next list as Int;
    }

    free(list);
    return res;
}

pub fn main() {
    Int res = add!(3, 2, 3, 4);
    printf!("%d\n", res);
    return 0;
}
#

it works

#

but i dont wanna pass the size each time

#

everything im finding online about C is saying this

#

what the underlying code does here when you do Variadic list[size] is call malloc with the size and then store it in list, then call vastart on the list temporary

#

this is what their example is showing

function s $add3(s %a, ...) {
@start
        %ap =l alloc8 32
        vastart %ap
        %r =s call $vadd(s %a, l %ap)
        ret %r
}

function s $vadd(s %a, l %ap) {
@start
        %b =s vaarg %ap
        %c =s vaarg %ap
        %d =s add %a, %b
        %e =s add %d, %c
        ret %e
}
hasty ruin
#

he only opens this channel when pinged

acoustic imp
#

Unknown Sadge

placid kraken
#
fn add(Int size, ...) {
    Int res = 0;
    Variadic list[size];

    for _ = 0 to size - 1 {
        res += next list as Int;
    }

    free(list);
    return res;
}

pub fn main() {
    Int res = add.(2, 3, 4);
    printf!("%d\n", res);
    return 0;
}
#

unlike func!(a, b) which just states you want the variadic arguments to begin at the 1st index, func.(a, b) first inserts the number of arguments at the 0th index, then puts the variadic argument identifer there

#

so itll automatically get size as 3

slim bramble
#

Do you have a collection of foxfort slurs ?

hasty ruin
kind herald
#

16player drm when

slim bramble
#

yk what I meant

hasty ruin
#

No

#

I don’t

slim bramble
#

L skill issue then

kind herald
#

average french

hasty ruin
#

I should send the hex gif

kind herald
#

I think that would be quite comedic. You should do it, iCraze.

hasty ruin
kind herald
#

Thank you for giving me the opportunity to do it iCraze. I will post it right now.

hasty ruin
#

did you delete that or bibi

slim bramble
kind herald
#

false

slim bramble
gentle grove
primal perch
#

fr

faint stag
#

i believe you can also just suspend before terminating so that you get the animation too