#development

1 messages · Page 208 of 1

manic forum
#

@hasty ruin i accidentally left the server uhh

hasty ruin
#

Gotta re apply troll

#

Nah just spam ping Aaron until he wakes up and adds you

#

Or any admin

manic forum
hasty ruin
#

But you can’t see who’s online because the member list is… that

manic forum
#

yeah right

timid furnace
#

@shut stag

hasty ruin
#

^ add pixel back to ono

timid furnace
#

(don't)

hasty ruin
manic forum
timid furnace
shut stag
#

hi

manic forum
#

hi phil

hasty ruin
shut stag
#

what do u need

manic forum
#

i accidentally left the server so i'm not in ono

native orbit
hasty ruin
#

accidentally

timid furnace
native orbit
#

rune i think

hasty ruin
#

Rune yeah

manic forum
hasty ruin
granite frigate
#

Need their assets

#

Where can I get them normally

hasty ruin
#

I just closed discord once and it removed me from the last server

#

What do we think…

manic forum
#

are you voting for me again? fr

hasty ruin
#

well it appears you do not own rune by icraze

manic forum
#

how would you know

hasty ruin
#

ONO knows everything

manic forum
#

right

hasty ruin
#

you have been accepted

timid furnace
#

might be able to stream it though

granite frigate
#

where

cloud yacht
orchid fulcrum
#

No way 💀 (wait a minute it says development hasn't started :/, at least somebody came up with the concept)

granite frigate
#

Isn't this just Supercharge

#

(which has also stalled development for years)

manic forum
#

I tried to make a brainfuck interpreter with shortcuts once and 1) it was unusable after 3 levels of indentation and 2) the shortcut corrupted on save

snow python
#

Hello

manic forum
#

hi

#

hello

snow python
#

hi

manic forum
#

:3 heyy

manic forum
#

proof that no real computer is turing complete

wind ravine
#

why does theos say private framework not found? its there in the sdk

manic forum
#

what is your TARGET ?

wind ravine
#

TARGET := iphone:clang:16.5:16.0

#

using 16.5 sdk

#

yes

#

/Users/lemin/theos/sdks/iPhoneOS16.5.sdk/System/Library/PrivateFrameworks/AppleMobileFileIntegrity.framework

#

i was on the wrong theos commit

manic forum
wind ravine
#

yes

#

nvm i made a typo in the file path

manic forum
#

@gentle grove i kinda want to try making a code video thing too

#

did you make any progress yet

wise spruce
#

chat what are the os libraries out there for mixing emojis

#

iirc i saw plenty years ago

#

there should be more advanced ones by now

gentle grove
wise spruce
#

I think with ts its possible with correct libraries to re-create the emoji thing of Apple intelligence and inject it into the keyboard

gentle grove
#

yeah im messing with v8

gentle grove
#

id imagine theyre just built directly into their respective apps

gentle grove
#
#

there is this i guess

#

the reason for me wanting to use lua or js or something is because theyre mature and fully featured in syntax and capability you get in the script language

#

but i dont want to use lua

cloud yacht
#

lua is nice and this litterally what it was designed for

gentle grove
#

not really

#

javascript was also designed for this

cloud yacht
#

lua was designed to be embedded into things

gentle grove
#

but what it was designed for doesnt matter compared to what can be done today

gentle grove
cloud yacht
#

lua is embeded into pretty much everything

gentle grove
#

bridging types is hard in both

#

yeah same with js

#

thanks google

#

ok theres "gluon" which is supposed to be a statically typed functional language which is precisely what i need, but everything has typos and not recent vcommits

#

but a functional language can be created from lua or js with a bit of effort

#

id rather write lisp than lua

#

any purpose built rust scripting language is designed for this, not really any existing generic one

#

it's because i need to transparently call rust methods from lua/js without serializing and deserializing types and arguments

placid kraken
torn oriole
#

Have you not heard of string comparisons troll

cloud yacht
gentle grove
#

i already got past that one though im focusing my eyes on gluon

#

or writing a huge proc macro to make all my ffi adaptations for stuff using v8

cloud yacht
placid kraken
#

WHY HAVE THE BACKSLASH IF YOU HAVE THE BACKTICKS

#

this language is so cursed

gentle grove
#

maybe this could be made if i avoid having many functions in the scripting side and basically distill it down to just a few methods that happen in js

#

stuff like a map/apply, quantifier functions for looping,

#

and for rhai i think id be better off using lua at that point

#

it may help if i just work on making the interface first

#

i cant find api documentation on the various ffmpeg libraries

#

all i see

#

oh i have to go herenvm

gentle grove
#

this is not api documentation

#

oh im literally blind

wise spruce
#

one of many

gentle grove
#

since thats what you said originally

wise spruce
#

other than this

#

but there should be

rocky oriole
#

the last message

lusty jacinth
tepid olive
#

im real dev (i cant code)

rocky oriole
orchid fulcrum
#

Forget all wrong opinions

weary heath
#

There’s too much objc hate

gentle grove
manic forum
orchid fulcrum
manic forum
#

and also there's no Objective-C auto completion in vscode so that's annoying

manic forum
#

For the record and for the ONO disciplinary committee: I do not hate Objective-C, but it isn't perfect. If anything I dislike Swift more

native orbit
#

objc got its issues, but swift got more of them

placid kraken
#

how many dylibs they link with

#

for a hello world program

manic forum
manic forum
visual meadow
#

anyone here know what daemon handles the rendering of app icons on the watch from iphone

#

i know snowboard can do themed icons there, i want to add said daemon to nathanlr

granite frigate
#

do people like actually use nvim

#

everytime I keep trying i get frustrated that I can't see my file structure or terminal, then I try installing plugins and realise I can just use vscode

hasty ruin
#

vscode 🔥

manic forum
#

i need to learn vim at some point

granite frigate
#

is the time investment i'd get from learning nvim worth whatever productivity boost there is

manic forum
#

it looks so nice

granite frigate
#

i keep having to google stuff for shortcuts

harsh junco
reef trail
reef trail
#

nvim is a terminal based editor

fading shell
reef trail
#

neovim is my only editor

#

apart from ida if you count that

granite frigate
#

i cant believe you stuck to it

reef trail
#

for looking at my filestructure is just use tree in a terminal

#

for adding / deleting / moving files i use oil.nvim

#

i very rarely need to view a filestructure anyway

#

telescope fuzzy find is all i need

reef trail
granite frigate
#

a week

reef trail
granite frigate
#

no not basic movement

reef trail
granite frigate
#

i can't search/replace only 1 instance

#

or have multiple cursors

#

or like auto format shit

reef trail
reef trail
granite frigate
placid kraken
reef trail
#

its so finicky to work you might as well go back to vscode

placid kraken
#

idk i dont really use nvim much anymore but it was fine when i did

#

zed with vim mappings >

reef trail
# granite frigate wdym

if you're using vim motions you dont need them, if you're trying to insert things across a list, like a bullet point in markdown for example you can use block selection and hit I to insert at the start of every line or A to append

#

but most of the time things you're doing with multiple cursors are done with macros in vim

granite frigate
#

ngl iunno what you're talking about 😭

reef trail
reef trail
slender glade
#

he didn't do it on darwin

placid kraken
#

you can also :<ln> to go to any line in a file

#

very useful

reef trail
#

but it is a thing

placid kraken
harsh junco
reef trail
#

no i like my pinky

placid kraken
slender glade
granite frigate
#

i just use like arrow keys and yy/dd

harsh junco
reef trail
reef trail
# harsh junco Doom emacs/ spacemacs

at that point you're just using someone elses config which imo ruins the best part of neovim / emacs in that you can tune your config to how you want it to work

reef trail
granite frigate
#

thanks mate

fading shell
reef trail
#

i just love how neovim has changed how i code

#

and want others to find the same

fading shell
reef trail
#

and there is no disputing how beautiful it looks

fading shell
reef trail
#

vscode has regex based highlighting so no you cant

#

well you probably can but not easily

fading shell
#

Pretty sure that code would look exactly the same in vscode just with different colors

granite frigate
#

i only just got interested in it again bc i saw some guy speedrunning shit

fading shell
granite frigate
#

😭

placid kraken
#

YALL

reef trail
placid kraken
#

HOW DO YOU SPAWN A CHILD PROCESS IN RUST WITH THE ABILITY TO KILL IT VIA SIGTERM FROM CTRL+C

#

im losing my mind 😭

placid kraken
#

yeah but the nix crate feels like so much bloat

#

all the stuff is already there in the rust stdlib, i can do literally all except the ctrl+c part

granite frigate
reef trail
granite frigate
#

i know

reef trail
#

but kitty i think

granite frigate
#

im just curious

#

ight

manic forum
reef trail
gentle grove
#

@manic forum idk if you were still interested but i think the best way is to split it up

a crate that i'll call pipeline for now which is just an abstract object representation of different operations you could want to do which is pure data and thats it (easy to (de)serialize and generate for any language)

then another crate for providing somewhat high level interface for the ffmpeg bindings which i named process (because i thought this was gonna be the first one but now i dont want to rename it to another temporary name for no reason)

then an application crate which helps glue the abstract representation into actual operations using ffmpeg

gentle grove
#

rust packages 🙏

wooden yarrow
#

i love rust crates !

gentle grove
#

my implementation in bobashare is kinda flimsy and ugly

#

except its not flimsy because its rust

wooden yarrow
#

sharing boba over the internet

granite frigate
#

i was thinking of writing a project in C for fun and realised how painful it would be

#

but i can flex that it’s in C…..

manic forum
#

@granite frigate don't do it

#

you'll regret it

#

or at least i did recently

#

but perhaps i'm a shitdev idk

gentle grove
#

what project

orchid fulcrum
slim bramble
gentle grove
manic forum
gentle grove
#

a noop

#

well it erases the type

slim bramble
#

wtf

gentle grove
#

Come to think of it that may be an actual thing

slim bramble
#

For me it justs casts it to void * ?

gentle grove
#

i dont think it lets you just cast a variable willy nilly

gentle grove
manic forum
gentle grove
#

oh yeah its fake

slim bramble
gentle grove
#

it doesnt know how to dereference it because its void

slim bramble
gentle grove
#

so you cant

manic forum
#

reinterpret_cast<void>(x) troll

#

wait actually

#

this might be a noop

#

is this a noop

granite frigate
manic forum
#

since (void)x is a noop

gentle grove
#

isnt reinterpret_cast a noop by definition

placid kraken
#

its pretty short it works who cares

gentle grove
#

that is not short what

#

its 8x the line count of what it should be

placid kraken
#

still though

gentle grove
#

i wouldve left the if

gentle grove
#

why does ffmpeg api make you pass double pointers though

#

it takes a *mut *mut AVFormatContext for avformat_close_input, open_input, etc

#

is it really just so they can erase the pointer

lusty jacinth
manic forum
#

Avoid threads other than the main thread so you don't have to worry about it

manic forum
gentle grove
#

Pay attention to the lifetimes of all your variables

ocean raptor
#

CVE-2024-44581

#

I got my first CVE

elder scaffold
#

wow congratulations

faint stag
#

bytedance???
bruh this is like facebook and fishook

#

their inline hook is called shadowhook and they also have a PLT one called bytehook fr

#

why do they have a linux kernel fork 😭

granite frigate
slim bramble
#

I wonder what they use it for

harsh junco
faint stag
#

idk

gentle grove
#

is info available yet

#

wait did you discover it or have it in your program

granite frigate
#

is there a easy shortcut to comment lines in vim like command slash

#

i only see like selecting multiple then inserting it in

#

but that doesnt work for html

wooden yarrow
#

you go to start and enter a <!--

#

and go to the end and put -->

granite frigate
#

true

#

day 2 of trying to use nvim

gentle grove
#

if youre doing <!-- and --> on every line

#

you could probably make a shortcut but idk

#

ive always been used to just having to use visual block manually

granite frigate
#

ight

#

i should learn macros

#

they sound cool

#

theres a lot of shortcuts that i havent learned

lime pivot
#

I mean it in the nicest way possible that I'm starting to see some real sludge in React lately

#

thank you boba very cool

gentle grove
lime pivot
orchid fulcrum
gentle grove
#

they are exactly the same thing

orchid fulcrum
gentle grove
#

I cant imagine its a particularly hot function but writing that is so horrible and ugly

#

doing 1 equality checks is definitely slower than 9 but again not a hot function

wooden yarrow
#

i think

gentle grove
#

It depends

#

That looks a bit complex to be optimized

#

and unfortunately this is js anyways

wooden yarrow
#

surely v8 engine goated

gentle grove
#

@grave sparrow v8 mentioned

ocean raptor
placid kraken
#

the ternary*

#

foo = uninit

jnz x true false

true:
jmp end

false:
jmp end

end:
foo = phi true 1 false 0

#

it’s pretty easy to optimize

gentle grove
#

I was talkomg about how you would get from that step to the ternary

wind ravine
#

how can i combine 2 bridging headers for theos?

granite frigate
#

I'm going to crash out why is writing text on an image so fucking hard in C

granite frigate
#

bro all I want is to just write some text with a font at a certain position

gentle grove
#

why does zig's documentation just straight up lie sometimes

gentle grove
#

No

faint lionBOT
#
Zeppelin Reborn

Adds an image or GIF next to the carrier text or time!

Author

Hitori

Version

1.4.1

Price

$1.99

Repo
Bundle ID

com.hitori.zeppelinreborn

gentle grove
#

also as far as i can tell the comptime functiosn arent magic and have to be cmposed entirely of comptime functions too, but theyre acting like its magic

full prawn
#

GameCenterX

#

My most wanted tweak to release

torn oriole
#

Brother would listen to something called hey porsche

gentle grove
#

I completely forgot python exists

#

and there are good python-rust bindings i thibk

#

maybe that will be my scripting language for my video editor

#

I think the goal is to do 0 calculations in script land

cloud yacht
#

You should use bash as your scripting language and ffmpeg for your api

gentle grove
#

i think i see what to do

#
  1. make an IR which closely mirrors the actual operations/commands you can do in ffmpeg
  2. make a high level user-facing language/protocol which is canonically just json
  3. make functions and types in scripting language which serialize to my standardized json format
  4. make a compiler to translate between the high level json language and the ffmpeg IR
#

and yes i have gone crazy

gentle grove
#

it makes the ffi boundary simple and also i can temporarily just write in raw json

rain dune
#

Wait

#

Why are you everywhere

tacit spade
#

so

#

I find myself in a situation

#

where I’ve already solved this problem once 😂

#

here’s the deal right. I want to use an iPhone 7 as a seamless hotspot

#

it runs iOS 15 latest, so automations cannot be run automatically, right

#

here’s the thing. the battery is absolutely shot on this thing. so there are very good chances that

  • it will run out of battery at least once during the day
  • a rootless jailbreak would further add battery drain, I think?
#

my goal: be able to detect when a wifi connection is lost, and then immediately begin broadcasting the hotspot

#

the former can’t be run automatically, the latter didn’t exist as a shortcut action

#

so you beautiful people here’s my question

any ideas????? can this be done with trollstore entitlements or something? should I go for the battery replacement? Does that shortcuts alternative whose name I can’t remember still work?

#

Should I whip out Xcode and get started lmao

tacit spade
#

oh what the fuck

#

never mind

#

lmfao

radiant idol
#

@tacit spade you asked me to remind you of something a couple months ago iirc

#

Just reminding

tacit spade
#

oh

#

well uh

radiant idol
#

Idk what though 😭

tacit spade
#

that’s not happening!

#

lmfao

radiant idol
#

what was it

tacit spade
#

I think it was OSSing everything

#

but uh

radiant idol
#

i forgot

tacit spade
#

idk I’m super focused on Japan rn

radiant idol
#

oh i see

#

Nice

tacit spade
#

Like

#

What is there to be gleaned from the worst hijacking of a tap-and-hold gesture ever that makes Arise play Live Photos?

radiant idol
#

Seems like a true beauty

tacit spade
#

I’m pretty sure I just added pressure with a timer LMFAO

radiant idol
#

Yeesh

granite frigate
#

what's the ARM equivalent for ebp and rdi registers?

native orbit
granite frigate
#

thanks

orchid fulcrum
gentle grove
tacit spade
#

so I came up with a solution

#
  • remove the passcode from the device
  • use a focus to open the personal hotspot pane
#

Yep

#

and when I turn the focus off

#

I have it open the wifi panel

#

only downside is that I have to do all this BEFORE I lose network connection

#

well here’s the idea right

#

I could also have the focus activate when I leave a certain place

#

It’s a very interesting problem to solve right?

cloud yacht
#

have the thing activate on a time and setup a action for every minute

tacit spade
#

it’s an iPhone 7 with a shot battery

#

75% health

cloud yacht
#

Acrivate on every 5% battery intervsl

kind herald
#

ignition?

#

the tweak on bigboss

#

[[ignition]]

faint lionBOT
#
Ignition

Enables Native CarPlay Interface on iOS 8

Author

Adam Bell

Version

1.0.0-3

Price

Free

Repo
Bundle ID

ca.adambell.ignition

tacit spade
#

it used to be an app

#

now it’s part of springboard

slim bramble
#

ONO leak

#

:/

clear iron
#

There was a tweak that did this like a decade ago

clear iron
#

Yea

orchid fulcrum
#

Does anybody by chance know an app that doesn't use "SoloAmbient, Ambient or Playback" as its AVAudioSessionCategory ?

grave sparrow
#

explanation of time APIs on macos/ios

first, the mach_* APIs:

  • mach_absolute_time() returns a uint64_t that represents ticks since boot, which does not increment when the system is sleeping
  • mach_continuous_time() returns a uint64_t that represents ticks since boot, which indeed increments when the system is sleeping
  • mach_approximate_time() is almost the same as mach_absolute_time(), but has faster execution time, but with less accuracy
  • mach_continuous_approximate_time() is almost the same as mach_continuous_time(), but has faster execution time, but with less accuracy

ticks are not a real-world value at all. you must convert number of ticks to number of nanoseconds (which would also be uint64_t) using mach_timebase_info(). once converted, you will have a uint64_t that represents number of nanoseconds since boot (precise/approximate, including/excluding sleeping)

second, the clock_* APIs. the function clock_gettime_nsec_np(someMode) can be used in any of the following modes:

  • CLOCK_UPTIME_RAW - identical to (i.e. wraps) mach_absolute_time(), but automatically includes the conversion to nanosec
  • CLOCK_MONOTONIC_RAW - identical to (i.e. wraps) mach_continuous_time(), but automatically includes the conversion to nanosec
  • CLOCK_UPTIME_RAW_APPROX - identical to (i.e. wraps) mach_approximate_time(), but automatically includes the conversion to nanosec
  • CLOCK_MONOTONIC_RAW_APPROX - identical to (i.e. wraps) mach_continuous_approximate_time(), but automatically includes the conversion to nanosec

what we have discussed thus far is not affected at all by changing the time/date on your computer, nor time zones, nor daylight savings - they are simply misc measurements of time since boot

#

continuing on, now we will discuss APIs for a human-interpretable clock. these would be affected if you explicitly change the time/date on your computer, but still are not affected by time zones and daylight savings

  • CLOCK_REALTIME - returns the current timestamp of now. expressed as a uint64_t as the number of nanoseconds since epoch (january 1 1970 at 12:00:00 AM UTC)
    • under the hood, this calls gettimeofday()
  • CLOCK_MONOTONIC - returns the timestamp at which the system was booted. also a uint64_t as the number of nanoseconds since epoch
    • under the hood, this calls mach_boottime_usec(), which subsequently reads from the COMMPAGE, and potentially does a fallback to sysctlbyname("kern.boottime", blah)
    • note that if you manually change the time on your computer by a certain delta, for whatever reason, the returned boot timestamp will also instantly change by the same delta. i suppose this makes sense when you think about it in a certain way? idk? (i.e. you changed the time by X seconds.....so why not also change the boot timestamp by X seconds?)

time zones/daylight savings do not count as changing the time on your computer - time zones/daylight savings are completely separate artifacts and do not relate to the time you set on your computer at all. for example:

uint64_t t1 = mach_continuous_time();
t1 = do_conversion(t1); //conversion with mach_timebase_info()
t1 = t1 / NSEC_PER_SEC;
//t1 is now 1726199644

//now go change your time zone in System Preferences (not manually set the time)

uint64_t t2 = mach_continuous_time();
t2 = do_conversion(t2);
t2 = t2 / NSEC_PER_SEC;
//t2 is now 1726199665
//in other words, only 21 seconds have elapsed
#

here's some example scenarios with the proper choice of API:

  1. to measure the execution time of some code: call mach_continuous_time(), then run your code, then call mach_continuous_time() again, then subtract, then do the conversion
  • i suppose you could use mach_absolute_time() too, either should work, but i'd prefer mach_continuous_time() due to the sleeping situation
  • using CLOCK_REALTIME is not appropriate because that is slow. accuracy is important here, so you want the lowest-level API, which is mach_absolute_time()
  1. to retrieve the timestamp at which the system was booted: use CLOCK_MONOTONIC
  • time_now - continuous_time is not appropriate because continuous_time is since the cpu first turned on, and not when the kernel saved the boot timestamp in a variable for us to use. we want the timestamp that the kernel saved. same applies to absolute_time
  1. to retrieve how long the system has been booted: find the CLOCK_REALTIME. then find the CLOCK_MONOTONIC, then subtract
  • continuous_time (and absolute_time) are not appropriate for same reason as #2
  1. to retrieve the timestamp of now: use CLOCK_REALTIME
  • boot_time + continuous_time is not appropriate (nor with absolute_time). boot_time is when the kernel saved the variable, and continuous_time is when the cpu turned on, i.e. those 2 overlap with each other. adding them would produce an inaccurate value that is off by a few seconds due to the overlap
  1. you want a "virtual uptime", such as Zefram's Launch Uptime (uptime since you launched Zefram)
  • more specifically, you want to measure how much time elapses between two moments, independent of the user manually changing the time on their computer. you want across process lifespan, across system sleep, etc, but never across system reboot
  • save time_now, then time elapses, then save time_now again, then subtract is not appropriate because what if the user manually changes the time set on their computer?
#
  1. (continued from above)
  • so, the proper choice is to save continuous_time now, then time elapses, then save continuous_time again, then subtract. this can be displayed as the number of nanoseconds that elapsed
  • if you want to also display the time at which the first save occurred: retrieve time_now, then subtract the calculated number of nanoseconds that elapsed. then display that as a time/date. remember that boot_time + continuous_time does not work to yield a human-interpretable time because of the reasons already explained ^

lastly, here is how to implement mach_continuous_time() yourself in raw assembly, in case you want super-speed. also includes a C version. taken from https://github.com/apple-oss-distributions/xnu/blob/xnu-8020.140.41/libsyscall/wrappers/mach_continuous_time.c

__attribute__((naked))
uint64_t custom_continuous_time(void) {
    asm(
        "mrs     x8, S3_4_C15_C10_6    \n"
        "mov     x9, #0xFFFFF0000      \n"
        "movk    x9, #0xC0A8           \n"
        "ldr     x9, [x9, #0]          \n"
        "add     x0, x8, x9            \n"
        "ret                           \n"
        :
        :
        :
        );
}

uint64_t custom_continuous_time(void) {
    return __builtin_arm_rsr64("S3_4_C15_C10_6") + *(uint64_t *)0xFFFFFC0A8;
}
gentle grove
#

I should make a video about white lights

elder scaffold
torn oriole
#

Got enough ms theretroll

clear iron
#

Except with 8,1 🤑

steady nest
steady nest
#

today is not that day

gentle grove
#

lmao

pearl sail
steady nest
orchid fulcrum
cloud yacht
#

Have you tried spawning the notification from springboard?

#

Like the low power notification

orchid fulcrum
#

Jailed tweak so i can't do that

cloud yacht
#

Block the main thread until the user dismisses the notification?

orchid fulcrum
#

Doesn't seem ideal to pause the app for this but i can try it thanks

slim bramble
#

Forgot how but there is a way

orchid fulcrum
#

Probably making a seperate higher level window and showing the alert there instead

torn oriole
#

Microphone+ mfs when

gentle grove
gentle grove
#

you know, the whole calling functions thing wasnt a huge issue i dont think because i was thinking of it wrong

#

serialization is kinda the same thing

gentle grove
#

technically as in the number can store it?

#

or as in you invented time travel

#

ok so time travel

kind herald
#

Ok capt inc

pearl sail
#

Ok floppa

gentle grove
#

is it not utc timestamp?

#

oh you meant literally the time not just the time zone

cloud yacht
#

TBH I kinda just assumed the uptime was just stored in seconds or whatever and was incremented on a clock

#

Does this mean hibernating a system can give you stupid long uptime because it won't ever go down

gentle grove
#

just look at anyone's windows; it hibernates the kernel by default when you shut down

#

kernel world right?

#

not some actual physical thing in the cpu

#

theres an uptime memory in the cpu??

#

wdym

#

when the computer is running the kernel is always running

#

when can you observe the uptime while the kernel isnt running

#

wdym

#

the kernel is still managing everything

#

the subtraction operation..?

#

didnt you just say the uptime was measured by storing the boot timestamp

#

yeah

#

oh thats weird

#

i thought it was always just reading the time on demand instead of counting up in cpu-time

#

wdym

#

yeah

#

the rtc..?

#

so you dont use the rtc for timing after boot?

#

why

gloomy gale
#

U Know How To Change Screen Time Change And Hide All apps From Battery Usage?

placid kraken
#

im taking a cs class and i was told to write c#

#

i didnt like how the teacher wrote it but i dont know if my way is more idiomatic

double FahrenheitToCelsius(double degrees) {
    return (degrees - 32) * 5 / 9;
}

Console.Write("Enter a temperature in °F -> ");
string? fahrenheitString = Console.ReadLine();
double fahrenheit;

if (!string.IsNullOrEmpty(fahrenheitString) && double.TryParse(fahrenheitString, out fahrenheit)) {
    Console.WriteLine($"{fahrenheit}°F = {FahrenheitToCelsius(fahrenheit):0.##}°C");
} else {
    Console.WriteLine($"Invalid temperature provided: {fahrenheitString}");
}
#

(its still the start of the class so its very easy)

#

do any people who use c# professionally know a more idiomatic way to write this? i dont really use c# very often

granite frigate
#

what does idiomatic mean

orchid fulcrum
granite frigate
orchid fulcrum
#

Python code be like

manic forum
#

why is rapidxml not working on the wii

native orbit
#

can just use mach traps to match mach_continuous_time

mov     x0, sp
mov     x16, #-89 // mach_timebase_info_trap
svc     #0x80
mrs     x8, cntvct_el0
ldp     w9, w10, [sp]
mul     x8, x8, x9
udiv    x0, x8, x10
wooden yarrow
granite frigate
#

NO FUCKING WAY

#

how'd they even figure it out

orchid fulcrum
#

What happens i am too lazy

granite frigate
#

amogus

weary heath
#

granite frigate
shrewd smelt
#

amoung

wooden yarrow
granite frigate
#

converting not() to T is interesting

gentle grove
#

a lot of stars had to align i guess

orchid fulcrum
manic forum
orchid fulcrum
# orchid fulcrum Does anybody know how i can fix this.

Issue: my alert gets blocked by other ui elements if i present it using keywindow.rootviewcontroller. And same thing happens without other ui showing up if i create a new window with windowlevel alert and show the alert in the new window instead

timid furnace
gentle grove
#

yeah i get that but

#

how many numbers can you actually make easily like that

acoustic imp
orchid fulcrum
manic forum
#

I change the x position of an image and the xml parser starts doing illegal memory reads

#

I love homebrew development

#

(I have no clue what is happening)

#

this thing alone could make me learn rust out of frustration

#

i think something somewhere is writing out of bounds and i have no clue what it is

gentle grove
#

Or wait i cant remdmber if it tells you

fiery seal
manic forum
#

This is a wii fr

gentle grove
#

Yeah but you only know when something is writing out of bounds at runtime

#

find a way to run it troll

manic forum
#

correct

#

no

gentle grove
#

or just get better at statically checking your code

#

or the libraries

manic forum
#

i don't want to touch a wii again

gentle grove
#

Do you have stack traces from crashes due ti the memoru writing

manic forum
#

i used to get stack traces

#

but i stopped getting them at some point

#

not sure what happened

gentle grove
#

that sentence could replace stack traces and them with two other nouns and be funny no matter what

#

i used to get pineapples but i stopped getting them at some point
not sure what happened

manic forum
#

tldr you're saying it's a skill issue and you're probably right

#

but I'll continue blaming other people's libraries

#

because i really don't care, I'm not touching a Wii again

gentle grove
#

if you have debug symbols for at least some of teh stuff it shoulf be pretty clear

manic forum
#

i didn't save them hm

gentle grove
#

ok yeah it is a skill issue

manic forum
#

i did look at where some of them were coming from and i distinctly remember one of them being triggered by printf("test")

#

something was terribly wrong

gentle grove
#

so all you need is a single double free or read after free or something stupid

#

actually those examples it might not be possible realistically but it is in principle

manic forum
#

i know

#

i know what ub is

#

i didn't care enough to thoroughly debug it

#

it's a silly app for the Wii

gentle grove
#

make it a silly app for the computer so you can valgrind it troll

manic forum
#

i never had random segfaults there so i don't think the problem is the library itself

grave orchid
#

are there any docs to link some backend stuff with frontend stuff

grave orchid
manic forum
grave orchid
#

I need to learn another language

manic forum
#

no

#

it's a python library

grave orchid
#

oh

#

so I just get the response from python and then shove it into flask?

manic forum
#

?

#

you make a web server with flask that serves both the frontend and api endpoints

#

you make requests from the frontend to the api endpoints to do stuff with python code and return results to the frontend

grave orchid
#

oh not again

#

so I need to find a backend server

manic forum
#

you can run it locally

grave orchid
#

yeah im kinda trying to put it on my website :D

manic forum
#

what's your website hosted on?

grave orchid
#

idfk

manic forum
#

and what will your python code do?

grave orchid
#

github pages

manic forum
#

yeah you probably can't do that with github pages

grave orchid
#

hugging face might be another solution

#

its just some python code that learns from the user

manic forum
#

does it use ai?

grave orchid
#

chatterbot

#

so prob yes

#

.

granite frigate
#

github and cf pages are static

grave orchid
#

A

granite frigate
#

i know a friend who uses huggingface for making a lambda function 💀

grave orchid
#

Looks like no backend

granite frigate
#

it works ig

manic forum
#

yeah you'll need a backend server

#

i can recommend heroku and digitalocean as those are the ones I've used in the past (although they are very different in how they operate)

granite frigate
#

isn't heroku pricing a bit

#

idk

#

netlify is also ok i guess

manic forum
#

whether that's worth it or not is up to you

#

personally I've only used the eco plan that gives you 1000 shared hours per month

grave orchid
#

i’m gonna use hugging face

#

since it’s free

#

i don’t want to pay much

granite frigate
#

everything is free lol

#

just don't get too popular

grave orchid
#

so i just need to get their api and make it work with my html?

manic forum
cloud yacht
manic forum
grave orchid
manic forum
#

but it's easy to get started and use

granite frigate
#

vercel offers ease too

#

but i don't really like how they lock in nextjs

manic forum
#

tbf i only used heroku initially because it was free

#

if it were paid i might have never used it

#

probably cheaper to set up dokku on digitalocean

hasty ruin
hasty ruin
#

Have not made it yet unfortunately

cloud yacht
#

Use the rune DRM server to store data

manic forum
#

give it a way to read/write blocks by id and it gives you a filesystem

#

alongside a fuse mount and an ftp server

cloud yacht
#

oh thats handy

hasty ruin
#

The info needed to retrieve the data is gonna take more space than just storing the data locally

wooden yarrow
hasty ruin
#

For what I’m gonna be using it will

manic forum
#

oh

#

¯_(ツ)_/¯

hasty ruin
#

(I have to store byte by byte)

torn oriole
#

CaptFS

manic forum
#

HydroFS

hasty ruin
#

ZeFSram

kind herald
#

ReFS

#

(Nebula File System)

manic forum
#

FSloppa

hasty ruin
#

APFS

#

(aaron p fs)

slim bramble
#

I was censored

#

:/

native orbit
#

BFRFS

manic forum
#

frFS

placid kraken
#

FS

manic forum
#

kind herald
#

_ _

gentle grove
#

if this doesnt exist already then there must be some reason but
some day i wanna make a sort of tickless physics engine where everything is functional and lazily evaluated based on math/linear algebra expressions, so there's never a ticking you have to do where you move the object 1/100th of its velocity 100 times per second for exAmple

wise spruce
#

/var/mobile/Library/Caches/Checkpoints.plist

#

anyone knows what use is this plist for

#

it has a lot of stuff like icon rows and blur background colors idk if I should change values in it

#

and width and height of the screen

radiant idol
#

If you do change it I’m curious about the results

wise spruce
#

I’ll wait for someone to try because it’s my only 17.0 device and my lower ios device

radiant idol
#

Fair

wise spruce
#

But the plist has many things think 50/50 they don’t persist over reboots as they’re “cache”

radiant idol
#

Would be so cool if it worked

granite frigate
#

is there a way to block OTA updates on macOS?

granite frigate
#

bet thanks

placid kraken
#

easier solution: accidentally buy a 256gb ssd when you first buy a mac not knowing how little storage that is and then have it always be full so macos can’t ever update even if you want it to

hasty ruin
#

bad storage management

#

too much swift bloat

slim bramble
clear iron
#

But you could end up fucking something up though

orchid fulcrum
#

I want current screen/window/view to have my gesture recogniser

is there a better alternative than (very simplified code)

-(void) becomeKeyWindow{
%orig;
[self addGestureRecognizer:gestureRecognizer];
}

because sometimes this doesn't really work at all for the main ui of the apps. While writing this i thought of making my own window or whatever and adding the recogniser to that, does this make sense ? is there a way to do it without interfering with the app in any other way. I thought this part worked nice untill i tried a new app not long ago. I am very sleepy to correct it tonight anyway i would just like suggestions

clear iron
#

I am interested to check that out now but I don't have anything on 17.0 atm

granite frigate
#

you can just use sparserestore to overwrite it

orchid fulcrum
#

I might try depending on ios 18 patchnotes

clear iron
#

And I don't know if sparserestore would let me change the permissions

#

Assuming it's overwritten

granite frigate
#

i was gonna say I could send it but i think it's different per device

orchid fulcrum
#

i have 14pm

clear iron
#

I'm just gonna wait until my 15 pro arrives

#

Although I might just update my iPad Pro given I wouldn't wanna risk another device again

harsh junco
#

is there any dbus implementation that works under Darwin?

visual meadow
#

anyone know how to get the battery current mAh in objc

wooden yarrow
#

oh, I guess you just use UIDevice now?

gentle grove
wise spruce
cloud yacht
#

buy a 256GB, complain about it so thye are like yeah i know then upgrade to 2TB to flex on them

wise spruce
#

But have same keys as icons per row and colors and stuff

#

Icons per folder

#

Icons in dock

#

All numbers and they’re valid

#

Icons size

#

But there’s things like accountability keys and resolution keys i think those per device

gentle grove
cloud yacht
#

I'm runnng 500GB but i am kinda on the low side

#

but I keep finding stuff I can delete

gentle grove
#

my mac is running out of 500 because macos SUCKS

cloud yacht
#

I mean I have 430GB of data in my home directory so I think its just a me issue

#

to be fair steam is taking 40GB

wooden yarrow
#

i only freed ~12GB after extensive cleaning

wooden yarrow
#

barely enough to install a minor update

#

💀

visual meadow
#

quick question

#

would uk iphone work fine in us

#

regarding carriers and stuff

#

figured id ask here rather than jb

weary heath
#

pretty sure it will, not sure about 5G

visual meadow
#

in that case imma see how this guys 14pm on 16.5 goes

slim bramble
#

In the about tab if you see both IMEI and MEID it is compatible with both

placid kraken
#

reveal in finder

wooden yarrow
placid kraken
#

easy storage

placid kraken
native orbit
#

onyx the best

#

free as well

placid kraken
#

click X

#

idk

wooden yarrow
#

smh paid app

visual meadow
#

thanks macos for copying properly

#

anyways

placid kraken
#

workey for me

wooden yarrow
visual meadow
#

one of the reasons i want a new 14pm

placid kraken
#

yeah obviously

#

you dont wanna actually clean

wooden yarrow
#

what

placid kraken
wooden yarrow
#

man im using onyx instead

placid kraken
slim bramble
visual meadow
#

Idk bro

weary heath
crystal sparrow
slim bramble
faint stag
#

today i decided i needed to write some c++ for something and wanted to use switch/case
just to realize case labels can only be ints or something compatible with ints

and the most widely accepted solution is to generate a unique hash for each input to be compatible with string literals instead????

#

nah i'd go insane
what the hell man

wooden yarrow
#

i think rust might also be doing this though

#

except sugaring

faint stag
#

but yeah i can cope with that

visual meadow
#

has anyone here hooked objc using dobbyhook/mshookfunction

#

i am failing

#

miserably

#

an objc method

#

this is what i have for mshookmessageex right now

                Class class_XBSnapshotContainerIdentity = objc_getClass("XBSnapshotContainerIdentity");
//                MSHookMessageEx(
//                                class_XBSnapshotContainerIdentity,
//                                @selector(snapshotContainerPath),
//                                (IMP)&XBSnapshotContainer_Identity_snapshotContainerPath,
//                                (IMP*)&orig_XBSnapshotContainerIdentity_snapshotContainerPath
//                                );```
#

ignore the comments

#

so what would it be with mshookfunction

#

this is the hook and all it does is crashes:

static NSString * XBSnapshotContainer_Identity_snapshotContainerPath(XBSnapshotContainerIdentity* self, SEL _cmd) {
    NSString* path = orig_XBSnapshotContainerIdentity_snapshotContainerPath(self, _cmd);
    if([path hasPrefix:@"/var/mobile/Library/SplashBoard/Snapshots/"] && ![self.bundleIdentifier hasPrefix:@"com.apple."]) {
            path = [@"/var/jb" stringByAppendingPathComponent:path];
    }
    return path;
}```
slim bramble
#

why not fucking use MSHookMessageEx 😭

visual meadow
#

because i dont want to load substrate

#

im using dobbyhook rn

slim bramble
visual meadow
#

i want to try something different

#

I know the top one i shouldve mentioned dobbyhook but basically same thing
yes im pretty sure
it will not generate a crash log for some reason

slim bramble
#

You can also hook it using just objc runtime

#

Didn't see that

#

mb

visual meadow
#

syslog is like not helping lol

#

it just goes here

timid furnace
#

don't filter to process SpringBoard

visual meadow
#

i would rather notdo that

timid furnace
#

wat

visual meadow
#

i dont wanna mess shit up by doing that idk

timid furnace
#

???????????

visual meadow
#

whatever

#

this hook worked

#

before

#

this is a new crash from this type of hook

visual meadow
#

I did see kernel corpse

#

but after that nothing else useful

#

no i meant

#

this hook works fine with mshookmessageex

cloud yacht
visual meadow
#

its something with the new way of hooking

timid furnace
#

anyways do this

visual meadow
#

theres nothing else useful

timid furnace
#

i had a weird crash like this once, where if i returned orig immediately it worked but if i did anything else it crashed

#

turns out i had my hook args wrong

visual meadow
#

ok testing this rn

#

not working

timid furnace
#

does it crash if you don't call orig at all
just NSLog and return NULL (or a hardcoded valid path)

#

well it will maybe crash but do you see the log at least

visual meadow
#

yeah i dont think its working at all

#

static NSString * XBSnapshotContainer_Identity_snapshotContainerPath(XBSnapshotContainerIdentity* self, SEL _cmd) {
//    NSString* path = orig_XBSnapshotContainerIdentity_snapshotContainerPath(self, _cmd);
//    if([path hasPrefix:@"/var/mobile/Library/SplashBoard/Snapshots/"] && ![self.bundleIdentifier hasPrefix:@"com.apple."]) {
//            path = [@"/var/jb" stringByAppendingPathComponent:path];
//    }
    NSLog(@"Im hooked");
    return nil;
}```
i dont see any nslogs
#

let me try mshookfunction

#

theres none

#

i checked in filza and settings

#

i dont have cr4shed

#

bruh

#

are you fucking shitting me

#

mshookfunction works grea t

#

or it didnt hook

#

lets see

#

nah its working

#

bro why doesnt dobby work for this

#

i just want a lightweight hooking thing

#

i switched from litehook to mshookfunction 2 days ago and it fucked battery

#

idk what to do

native orbit
#

make one

visual meadow
#

too much work

#

maybe i could modify litehook to

#

let you call original function

#

instead of syscalls

#

hm

faint stag
#

this is a funny statement lol

visual meadow
#

@grave sparrow weird enough it works for other things

#

like for example this

#
            Class class_MI = objc_getClass("MIContainer");
            
            Method methodmi = class_getInstanceMethod(class_MI, @selector(makeContainerLiveReplacingContainer:reason:waitForDeletion:withError:));
            
            IMP imp3 = method_getImplementation(methodmi);
            
            DobbyHook((void *)imp3, (void *)new_makeContainerLiveReplacingContainer, (void **)&orig_makeContainerLiveReplacingContainer);```
#

this works fine

native orbit
#

using dobby in 2024 is wild

#

real mfs make there own

#

fr

visual meadow
#

when will the features.... be accessible... to other individuals

native orbit
#

if it aint a stock lib or some ssl shit i refuse to use them troll

#

u cant not have it so it dont count

#

u have to link with libsys on m1+

#

mov x16, #4 troll

#

with what

visual meadow
#

so what is the best hooking library for performance and battery life in my scenario, i hook csops, csops_audittoken, and fcntl, and some of the other stuff i showed earlier

cloud yacht
#

use linux

native orbit
#

make xnu-zefram-edition

visual meadow
#

substitute over ellekit?

#

alright

#

yea makes sense

native orbit
#

substitute still mids

visual meadow
#

i just want something lightweight

#

and something that dont buttfuck battery

#

alr

native orbit
#

litehook

visual meadow
native orbit
#

just add orig calling

visual meadow
#

i tried

#

didnt work

native orbit
#

macro hell

#

bruh

#

its like

#

10 lines of code

visual meadow
#

add here

native orbit
#

depends on *OS and the restrictions in place

#

macos is easy, ios a little more annoying

visual meadow
#

if you think yours is the best why dont you let me try it

visual meadow
#

then yours belongs on the bottom of that list

native orbit
#

@visual meadow are u doing this on dopamine or ur jb thing

visual meadow
#

my jb thing

#

its arm64

#

like

#

the processes its in

native orbit
#

no pac?

#

ight

visual meadow
#

so no need for caring about pac

#

yea

#

what about

#

framework

#

in my dms

native orbit
#

ida:

cloud yacht
#

zefram is fake so it should be at the bottom

visual meadow
#

legitimately downloaded on my pc and mac

#

of course

#

yeah that was the point same here

#

probably over half of ida 9 users are pirated ones

native orbit
#

jiang ying a real one

visual meadow
native orbit
#

test device is charging now

visual meadow
#

both ways right

native orbit
#

get hired at arm, add the instruction, quit

cloud yacht
#

capt is a hooker

native orbit
#

imagine if you could just ldr into pc lol

cloud yacht
#

zefram kernel

native orbit
#

real

#

wonder how much longer til they kill kexts

#

signed kexts

#

not hacked up shit we use

timid furnace
orchid fulcrum
#

i am very confused, do you guys think the the recognizer would work in this code, (functionally it doesn't work but i am trying to understand the reason)

    tweakWindow.windowLevel = UIWindowLevelAlert - 1;
    tweakWindow.backgroundColor = UIColor.clearColor;
    tweakWindow.alpha = 1;
    tweakWindow.hidden = NO;
    [tweakWindow addGestureRecognizer:gestureRecognizer];```
acoustic imp
#

i dont think ur suposed to add gesture recognizers to UIWindows...

#

add it to a View.

#

or the rootVSs view

orchid fulcrum
#

bet lemme try

acoustic imp
#

lik window.rootViewController.view

tepid olive
#

Currently making a program with libimobiledevice, and im wondering, im getting LOCKDOWN_E_INVALID_ARG, for this

lockdownd_client_new(device, client, "test")```
#
    idevice_t device = NULL;
    lockdownd_client_t* client = NULL;
    lockdownd_service_descriptor_t* service = NULL;```
#

not really sure what im doing wrong

radiant idol
#

@tepid olive your username seems really familiar

#

have I seen you before

#

whar

normal orchid
radiant idol
#

I think it's Checkpoint.plist now Checkpoints.plist

normal orchid
#

At least in the C category

radiant idol
#

i couldnt find it at the beginning either, but when I looked closely I found it

#

(iOS 15.2.1)

normal orchid
radiant idol
#

do a search

normal orchid
#

We have found

radiant idol
#

yep

normal orchid
#

What to edit

radiant idol
#

the homescreen columns thing is what I found most interesting

normal orchid
#

“Home Screen icon columns”

#

It’s set to 4

#

Great minds think alike

radiant idol
#

yes

normal orchid
#

I’ll set it to like 6 and respring

radiant idol
#

idk if it will persist through reboots though

#

since it's just cache

normal orchid
#

🤷‍♀️

#

It didn’t do anything

radiant idol
#

hmmmm

normal orchid
#

just pushes apps to the other window

radiant idol
#

well it does do something at least

#

interesting

#

what about the folder ones

normal orchid
#

trying the max pages one

#

Didn’t affect page count or folder page count

radiant idol
#

big rip

#

isn't there one that has the rows and columns of the folders?

normal orchid
#

Trying

#

Wats max folder icon row and column count normally?

#

(Not for the file, iPadOS)

#

3?

radiant idol
#

uhh

#

let me look on my end

normal orchid
#

The file says 3

radiant idol
#

on my iPad

normal orchid
#

But I just shoved 4 and 4 together

radiant idol
#

mine also says 3 rows/cols

#

on iPad

normal orchid
#

I’m talking about like actually what it can do

#

Not what the file says

radiant idol
#

oh

#

4x4 on iPad

normal orchid
#

Had a feeling

radiant idol
#

3x3 on iPhone

normal orchid
#

That’s dummy cache or something

radiant idol
#

I wonder if there's something else that has the real data

normal orchid
#

Many checkpoints

radiant idol
#

yes

normal orchid
#

Trashed and springboard time 🔥

#

It did nothing

radiant idol
#

rip

tepid olive
radiant idol
#

oh yeah

tepid olive
#

hidy

radiant idol
#

it's been so long lmfao

tepid olive
#

like 2 years or sum

#

i have not evolved whatsoever

radiant idol
#

yeaahhh

tepid olive
#

buuuuut, you got a fix for me?

radiant idol
#

what was the fix

#

oh you actually adapted it to rootless

#

nice

tepid olive
#

what?

radiant idol
#

Hidy

tepid olive
#

nah it was just rootifier

#

and the respring didn't work

radiant idol
#

oh

#

its make clean package THEOS_PACKAGE_SCHEME=rootless

tepid olive
#

but i did write something something im proud of

radiant idol
#

that's how you compile a rootless deb

tepid olive
#

nah the theos thing wouldn't reinstall on my new mac

radiant idol
#

weird

tepid olive
#

biggest project i ever made in the last 2 years

#

for something i got paid to make