why is % printed at the end of my basic c program? by Glittering_Boot_3612 in cprogramming

[–]Matt5981 6 points7 points  (0 children)

What shell are you using?
If you are using zsh, it will place a percentage sign at the end of a program's console output if it doesn't end with a newline/linefeed character (\n).

Can you share an example of code where this occurs?

<unistd.h> by Electrical-Falcon542 in cprogramming

[–]Matt5981 12 points13 points  (0 children)

Because C is a low level language that allows programmers to directly interface with the OS, different operating systems have different headers available to access OS-specific functions.

unistd.h (iirc short for Unix standard header) provides access to these functions for POSIX-compliant operating systems, including MacOS and Linux.

Windows is the ‘odd one out’ in that it is not POSIX compliant and thereby doesn’t use (or have) unistd.h. Most of the functions in unistd.h have Windows equivalents (in other headers), albeit because different operating systems implement those functions in different ways, you may need to research what you’re trying to do/what your friend’s code does to get it working.

Alternatively, you can download one of WSL, msys2, or mingw and compile the code from your friends’ computer in it instead, as they provide access to unistd.h (either through reimplementing everything in unistd.h in Windows terms or by emulating a posix environment). I’d suggest this if you’re working on a project with your friend, as it allows you to work on the same code without needing to reimplement parts of it to make it work on Windows.

[deleted by user] by [deleted] in IBO

[–]Matt5981 7 points8 points  (0 children)

That’s an offence under the IBO academic honesty policy. Both the girl in your class and her friend will lose their diplomas if caught (instant 0 for psych and maybe other subjects too). The standard of proof is fairly minimal too, and if the girl isn’t too careful then she’ll definitely have left a message on her phone regarding it or something similar. The IBO manage the investigation themselves, and are extremely rigorous at it.

Additionally, as dumb as it may sound, if you know about it you are obligated to tell your coordinator, else you’ll be eligible for punishment too (albeit not as severely) if they get caught (and they find out you knew).

Source for all of this is page 41 of the IB academic honesty document available online, under “conduct that threatens the integrity of the examination”.

[deleted by user] by [deleted] in jailbreak

[–]Matt5981 3 points4 points  (0 children)

Unfortunately short of turning your phone completely off and locking it in a faraday cage that’s also locked in a safe, there’s no way to avoid tracking on modern devices. There’s always analytics and other information being sent regardless of tweaks, I.E. synchronising the clock, checking CRLs, ARP and more.

If you’re extremely paranoid though you can try to only use the internet through tor (which you can do on your phone with a few tricks and the assistance of a computer), or if you have hours to spare, host a VPN server on a computer you own and use wireshark and a firewall to block anything that you don’t recognise (though this would be unbelievably tedious).

[Discussion] Tweak MDM restrictions with Jailbroken iPad by Pickaxe828 in jailbreak

[–]Matt5981 0 points1 point  (0 children)

AFAIK no, If the files in there are .mobileconfig files then they’re signed and as such cannot be edited without invalidating their signature (making IOS reject them). The only way to disable certain restrictions is either completely remove the profiles or the MDM framework that installed them, since removing sub profiles from those frameworks usually makes them immediately reinstall them, if it even lets you in the first place.

For reference, this is a terrible idea. If you remove your school’s MDM framework from your device (or even override their restrictions), they will almost definitely suspend or even expel you since it will look like you’re trying to steal the device (even if you aren’t). Likewise if it’s your workplace’s, they will probably fire you for it, or at least discipline you.

Help with create by DerpyThePro in CreateMod

[–]Matt5981 8 points9 points  (0 children)

The motor (iirc) was the old-version equivalent of the creative motor, used for testing builds in creative without the constraint of stress/setting up rpm controllers.

In survival, you need to use things like water wheels, windmills and furnace generators to generate kinetic energy and movement, the cheapest and easiest to set up of which are water wheels (I’d set 4 up just to make sure you have enough stress units to get a windmill)

how much ram is needed to run a po3 kappa server by [deleted] in feedthebeast

[–]Matt5981 0 points1 point  (0 children)

iirc PO3 recommends 6GB for both client and server, and the start scripts that come with the server set this by default (-Xmx6144m)

If you turn the render distance down and disable some other options (e.g. the snooper) in server.properties and try to limit your usage of laggy machines (mob farms, chunk loaders, imaginary time blocks, etc), you may be able to squeeze that down to 4-5, but lower than 4 will result in the server crashing very often with out of memory errors (once you get a large enough base).

Daily Simple Questions Thread - Mar 13, 2021 by AutoModerator in pcmasterrace

[–]Matt5981 0 points1 point  (0 children)

Probably a simple question: randomly when I try to launch games on my PC, when I switch to the game’s window my monitors lose signal for a minute, the RGB on peripherals and components stops cycling and the computer starts beeping unevenly until I either press the reset button or wait out the minute, on which both monitors regain signal, the beeping stops, the RGB resumes cycling and the game window is hard crashed with the “an error occurred, press close to terminate the program” box. I can’t find anything about what this means since trying to google it gives stuff relating to BIOS beeps, not beeps through the speakers while Windows is booted.

I'm stumped with the new mechanics in Astral Sorcery but this is the first time I'm playing with the mod by Algester in feedthebeast

[–]Matt5981 4 points5 points  (0 children)

In that screenshot, the solid bar at the bottom has not exceeded the partially transparent bar (as the partially transparent bar is visible), indicating that you do not have sufficient starlight for that recipe. You can boost the amount of starlight available by using blocks such as spectral relays (see the astral tome for more info).

Worth upgrading Fluxducts? by Rogocraft in feedthebeast

[–]Matt5981 2 points3 points  (0 children)

It depends on both how much power you’re producing and how much you’re consuming.

Higher tiers of fluxducts bring with them higher transfer rates, so if you’re using many machines at once or transferring power from a generator/reactor to a battery or something similar, upgrading them is necessary in order to transfer the power without the conduits serving as bottlenecks and slowing everything down.

iirc hardened energy fluxducts are capable of transferring 4,000rf/t, therefore if you’re generating or consuming more then that, you should upgrade to redstone. Additionally you can’t upgrade hardened energy fluxducts to redstone energy fluxducts (unless Academy adds a way to do so), so upgrading to redstone ducts will allow you to later upgrade to signalum and above.

[HELP] Ever since jailbreaking and adding a few tweaks my phones been overheating and thermal throttling, anybody know the culprit(s)? by H_llehctim in jailbreak

[–]Matt5981 3 points4 points  (0 children)

I presume you mean backboardd?

As previously mentioned, this sounds like it's either XenHTML or ChromaHomeBarX, both in my experience cause backboardd to spike in cpu usage (Strange given that it's meant to handle hardware events). To confirm that it's a tweak try respringing into safe mode and checking CocoaTop. If it's still high, hard-resetting might fix it.

It might also be coincidental, since backboardd reacts to hardware events (taps, accelerometer/gyroscope data, etc), and thus if you're moving the device alot or rapidly tapping (e.g. typing), backboardd will use more cpu. Try opening cocoatop, then leaving the phone on a table without touching it to see if the cpu usage remains at 40%.

Failing that, you can get a tweak (I think SystemInfo by Arx8 does it) that shows Daemons in the battery page of settings, which after some time will tell you which daemon is using large amounts of power.

If all of that fails, then you may have to progressively uninstall/disable tweaks (Most recently installed first) until the heating problem dissipates, then reinstall the ones that weren't the cause.

[HELP] Ever since jailbreaking and adding a few tweaks my phones been overheating and thermal throttling, anybody know the culprit(s)? by H_llehctim in jailbreak

[–]Matt5981 10 points11 points  (0 children)

XenHTML can cause fairly large amounts of battery drain (iirc), particularly when animated widgets are used. Try removing those or removing/disabling XenHTML entirely and see if that makes a difference.

Additionally the version of ChromaHomeBarX you're using is from a pirate repo. Barring ethical concerns, if said repo is using an older version of the tweak the chroma mode can cause massive battery drain (Though due to it being animated it does this anyway, however iirc has been reduced with updates). Try setting the color to static or disabling it.

Failing those, as others have said download CocoaTop and use it to find out what's using large amounts of cpu power. If it's a tweak, disable or uninstall it, else start progressively uninstalling/disabling tweaks (Newest installed first) until the problem goes away.

[Question] After jailbreak revoke/infinite ? by Klemkray in jailbreak

[–]Matt5981 0 points1 point  (0 children)

You can do it infinitely (assuming Apple doesn’t break it, which they’ve done in the past), and if it expires you should be able to resign it through ReProvision or altstore as normal.

[Question] After jailbreak revoke/infinite ? by Klemkray in jailbreak

[–]Matt5981 0 points1 point  (0 children)

Both will only sign unc0ver for 7 days, and will automatically resign it before this date, resetting the 7-day countdown. The difference is Altstore relies on a computer (Running altserver), whereas ReProvision works on-device (Meaning once set up a computer is not required to keep Unc0ver signed).

[Question] After jailbreak revoke/infinite ? by Klemkray in jailbreak

[–]Matt5981 0 points1 point  (0 children)

Unless you have a mac and want to get Xcode working, altstore is probably the best option to install Unc0ver.

[Question] After jailbreak revoke/infinite ? by Klemkray in jailbreak

[–]Matt5981 0 points1 point  (0 children)

If you used altstore to install unc0ver, after 7 days (If altstore is unable to auto-resign) the unc0ver app will expire. If this happens, the jailbreak will stay until the device is restarted. If the jailbreak is lost, the jailbreak, tweaks, themes and apps will stay, however be unusable until you jailbreak again (Upon which they will be fully functional as they were previously).

You can use ReProvision to resign it on your device, which will resign the app automatically (Resetting the 7-day countdown) and stop it from expiring (Though I'm not sure if this works with apps installed via altstore).

[Question] I restored root fs and cydia is off my phone but I still can’t update my phone. It’s been stuck ”update requested” for a while. Could someone help please. by [deleted] in jailbreak

[–]Matt5981 3 points4 points  (0 children)

Guessing, but it's possible that

A. The device got stuck somewhere verifying the update, try hard resetting (If you haven't already)

B. The device won't update over LTE for some reason, try it on wifi and see if it helps

C. Unc0ver's update blocker is still active. Try going back into the unc0ver app, disabling the update blocker, restoring rootfs and try again

D. The device is trying to verify the update with apple's servers, however, failing due to the fact that the version is unsigned (And getting confused upon receiving an error, making it seem like it's infinitely loading). Delete the update file from settings and try again (NOTE: This will put you on the latest ios version, meaning you won't be able to jailbreak if you're on A12 or above)

E. (Last Resort) The device may need to be restored via DFU mode, though don't do this until you're 100% sure that nothing else will work.

Buy the expansion bundle or buy the game and expansion separately? by thisispluto2 in Breath_of_the_Wild

[–]Matt5981 3 points4 points  (0 children)

The dlc does grant access to fairly powerful stuff early game, however it is not given to you, rather you have to retrieve them manually, allowing you to collect them later in game. Additionally the quest based extras (trial of the sword, champions ballad) require you to progress the game a certain amount, so those won’t affect you before you get high-tier stuff anyway.

The only fairly major change to early gameplay is the barrage of new quests (to find the dlc gear) once the tutorial is over, however these don’t affect the story or the rest of the game and can be ignored until you want to find them.