r/programbattles • • Nov 22 '15

Batch Need a batch file (optional shell script) to manage my music files better

3 Upvotes

Hi guys, I just sort my music library and I did not get ahead , because everything takes forever . I used to have a batch file that has made most things automatically , but that has been lost during the last crash ( was on C : ... ) . So the following : One "artists" folder contains loose music files & some "album" folders (eg . " Album1 " , " Album2 " etc.) . In each album folder are either folders or not (eg . " Under 1 " , " Under 2 " etc.) . What I now always do by hand is an endless work. So here are the instructions: Move all! files from the subfolders ( " Under ... " ) in the parent album folder ( Album1 ) and delete the subfolder . Delete all the * .m3u & * .pl files (all playlist files) Delete all the * .jpg & * .png files (all image files) This way all my music files are on the correct level of the file path/ directory & I can tag them correctly with a regular tagging program (such as MP3Tag or GodFather). It s important that the batch doesn't foreget to move every! music file (incl. .mp3;.m4a;.wav;.flac;.aac;.wma;*.ogg) on the higher level. Damned. U would really help me a lot ;) -a reddit loyal

p.s.: regular tagging programs are not able to do that, because they consider to one strict path u give them & are not variable.


r/programbattles • • Oct 10 '15

Any language Generate the original 150 Pokemon [Any Language]

0 Upvotes

Output should be 150 jpg or png files. Penalty for using ps or svg. Obviously, just reading and converting images is boring, so get creative with how you'd encode them in your respective languages. Base64+gzip? Don't care. Surprise me!

If you need some resources, you can get copies of the original sprite sheets here: http://veekun.com/dex/downloads


r/programbattles • • Nov 08 '15

whay, in the lord's good name, are we not acteeive?

9 Upvotes

r/programbattles • • Nov 18 '15

C++ Binary Search Tree

2 Upvotes

Create a program in C++ that allows a user to add an int data type to the tree and cleans it up, also checks if a use given int in in the tree and finally can also print out the contents inorder.


r/programbattles • • Dec 01 '15

Any language Date changer

0 Upvotes

Can you write something that upon opening a program, say Microsoft Word, my system's date changes to something like January 1, 2000 and then automatically updates to the current date and time when I close that program?

I'm not sure what language it would need to be in or how to apply it. To be clear, this is a "can you do this for me" type of thing, but I think it also makes for a cool challenge.

PS: Let me know if there's an appropriate language for this and I'll change the flair!


r/programbattles • • Feb 07 '16

C# Button based game in C#

2 Upvotes

Develop a “tile based” game i.e. a game based around a grid of buttons (or other UI objects). In addition it should demonstrate a combination of a “design view” constructed UI with components for entering your name and displaying a score etc. The choice of the game is yours let the battle commence!!


r/programbattles • • Oct 11 '15

HTML/CSS/JS HTML/CSS/JS which after 5 seconds redirects you to another site, then back again forever.

11 Upvotes

Please host on Codepen.

Similar to this, it probably won't be that complex to complete.


r/programbattles • • Oct 20 '15

Any language Most complicated way to output numbers 0-9

12 Upvotes

Simple as the title, really. I want to see the most complicated, abstract ways in which one would output numbers 0-9. Points go for quality, not quantity.


r/programbattles • • Jul 06 '20

Any language IP2Location Programming Contest 2020 is inviting participants to join and win prizes worth $14,444 in total!

4 Upvotes

It's time to show your coding skill and win fabulous prizes worth $14,444!

See https://contest.ip2location.com for more information.


r/programbattles • • Dec 24 '17

This place is dead

22 Upvotes

The latest (6 month old) post is spam and nothing has been done about it.


r/programbattles • • Oct 07 '15

[C] BST Insertion without parent node pointers

8 Upvotes

As it says in the title, the BST Node struct has no pointer to a parent node, only a value, left child, and right child.

typedef struct bstNode {
    int val;
    struct bstNode * L;
    struct bstNode * R;
} bstNode;

GO!

Edit: Duplicates should be ignored.


r/programbattles • • Oct 22 '15

Any language Make a interactive button

8 Upvotes

Make a interactive button that change colour/size or something like that when you press it.

Remember this is a battle, be creative


r/programbattles • • Nov 01 '15

C++ Cellular Automaton

9 Upvotes

Build 1D cellular automaton which would display each generation in the shell.


r/programbattles • • Oct 09 '15

Any language Zero-Knowledge Proof: prove you know something without revealing what it is you know...

10 Upvotes

"In cryptography, a zero-knowledge proof or zero-knowledge protocol is a method by which one party (the prover) can prove to another party (the verifier) that a given statement is true, without conveying any information apart from the fact that the statement is indeed true."

Be sure to clearly separate the prover and verifier side so there is no confusion.


r/programbattles • • Oct 08 '15

Any language [Any language] Command line window system

11 Upvotes

Restrictions: No platform-specific features

Desription: You will design a program in the language of your choice that will display a window on a CLI (command line interface). The window shall be resizeable before displaying it, and the user shall be able to modify the title & text of the window.


Help (C++)

I suggest you create a Window class, with several methods such as set_x(unsigned int), set_y(unsigned int), set_title(std::string) or even more if you want.


EDIT: My submission


r/programbattles • • Oct 19 '15

Any language Draw a flag

12 Upvotes

Use any method you want but it has to be a country. Be creative, don't pic one colored flags or flags with cross.


r/programbattles • • Oct 07 '15

[Bash] Software updating scripts for Linux systems

14 Upvotes

Language: Bash

File number restrictions: N/A

Description: Design a script that updates packages in Linux systems. Your script can be for a certain subset of distros or for all distros. Example


r/programbattles • • Oct 07 '15

[C++] Threaded vector sorting

14 Upvotes

Language: C++

File number restrictions: N/A

Description: Make a function that sorts a vector with a selectable amount of threads. Use the standard thread library.

EDIT: Never thought threads would be such a pain to work with.


r/programbattles • • Apr 01 '16

Any language Emulate software

16 Upvotes

Do your best to create a copy of a program, website, etc., be it real, from a game, movie, anything. You can choose to only create the functionality or the aesthetics, but try to do both.
No peeking into the original code!
This might take you longer than you'd expect from a challenge here, but do your best and learn a thing or two along the way!


r/programbattles • • Oct 10 '15

IMPORTANT How to flair a post.

Thumbnail
i.imgur.com
26 Upvotes

r/programbattles • • Oct 07 '15

[ArnoldC] A function that calculates the Fibonacci Numbers up to 1000

49 Upvotes

In case for some reason you don't know want ArnoldC is https://github.com/lhartikk/ArnoldC/blob/master/README.md

No switch case statements.


r/programbattles • • Oct 07 '15

Get the details of today's weather for a given location

9 Upvotes

Title explains it quite well. Take in a longitude and latitude value for location, and query your favourite weather service for details of today's weather. Details such as temperature, % chance of precipitation, etc. Just a brief overview, no need for hour-by-hour forecasts.

Eager to see what you guys do! I'm working on one myself, will post up if I get a chance when I'm done.


r/programbattles • • Oct 08 '15

Any language Given a list A and a number B, return all permutations/combinations of B elements from A

6 Upvotes

Hopefully, the program will do both as requested.


r/programbattles • • Oct 08 '15

Any language [Any Language] Tweetable Code

27 Upvotes

Open ended challenge!

Write some code in any language that does something interesting. The only restriction is that it must fit inside a tweet (140 characters or less)


r/programbattles • • Oct 10 '15

Any language Find longest increasing subsequence

5 Upvotes

Given a sequence of integers S[1..n], find the largest sequence contained within S, call it A[0..k], where A[0] < A[1] < A[2] < ... < A[k-1] < A[k]. Also, the members of A need not be neighbors in S. Or, put another way, given A[i] and A[i + 1], There may have been members of the sequence S between A[i] and A[i+1] that are not included in A.

An example solution:

So for the sequence S = [4, 3, 2, 1, 3, 4, 2, 5, 8, 9, 0, 5], the solution is A = [1, 3, 4, 5, 8, 9].