Jump to content


Programmer shizzies

261 replies to this topic

#256 brodan


    Shizz Captain

  • Members
  • PipPipPipPipPipPipPip
  • 1,673 posts
  • Location:Brooklyn, NY

Posted 27 September 2018 - 08:14 AM

I'm becoming a victim of Stockholm Syndrome, I'm afraid. I both love and hate being tethered to RM/COBOL-85 now. What's next? FORTRAN?


wait what? are you a COBOL dev? dude go apply at NASA or some shit, im pretty sure places are paying out the ass for COBOL devs because they are so incredibly rare at this point in time. you would make bank

  • 1

Why the fuck cant I see when I close my eyes?

#257 tibone


    Shizz JediMaster

  • Members
  • PipPipPipPipPipPipPipPip
  • 4,377 posts

Posted 27 September 2018 - 10:27 AM

he probably work for some bank or financial institute, and they are paying all the coins for cobol/fortran devs, indeed.

  • 0

Can you Jam with the Console Cowboys in the Cyberspace ?


#258 Katamari


    Shizz Captain

  • Members
  • PipPipPipPipPipPipPip
  • 1,678 posts
  • Location:Maryland

Posted 09 December 2018 - 07:41 PM

This was posted in a discussion board for an online class



Java Generic procedures and bland classes enable designers to demonstrate, with a lone methodology declaration, a course of action of related techniques or, with a singular class disclosure, a plan of related sorts, independently. Generics in like manner give total time sort security that licenses engineers to catch invalid sorts at accumulate time. The non-generic program mostly uses the arrays in their classes that will help declarations of the valuables. For example: <code>

It's like this person wrote out a description of generic classes in Java then used a thesaurus on every other word for some reason.

bland = generic

methodology = function

disclosure = declaration

licenses = allows

sorts = types

accumulate = compile

valuables = variables


Since this is an online class, it's likely this person doesn't speak English and used an online translator.



So I just googled "Java Generic procedures and bland classes" and this was just copied straight from CourseHero lol. I guess cheaters gotta cheat

  • 3

<tibone> 120bpm in 4/4
<tibone> PROG AS FUCK


sfWV4OE.png1306536299140-dumpfm-DurkFunk-katamari_pkirby_roll_by_spazmaster6000-d6bt3h3.gif0Pn6mR8.png  JIEXWZw.png
PC Game Metal

#259 Katamari


    Shizz Captain

  • Members
  • PipPipPipPipPipPipPip
  • 1,678 posts
  • Location:Maryland

Posted 11 January 2019 - 02:46 PM

One of the big things I wanted to do after taking on Dwelling of Duels maintenance is write some scripts to help automate a lot of the boring and tedious work. The most tedious thing is definitely handling the youtube uploads, since you would need to drag and drop all the videos onto the youtube uploader and then manually correct all the song titles. So, on Tuesday night I decided to dig in really heavy into the Youtube API and try to figure out how to automate uploads, tagging, and playlist creation.


I already had a script written to use ffmpeg to create simple videos with banner artwork that have each of the songs playing, so that was easy to work into this.


The DoD site generator already runs on Python so I just decided to piggyback off of that and use their Python examples. Took a bit of head scratching and tinkering with the API settings, but I was finally able to upload a video to youtube using a single script! I must have uploaded and deleted this tibone song 20 times in getting it to work. It was a simple step from there to uploading an entire folder (all set to private, of course), then pretty easy to log the video IDs of each one I created. Next up was playlist creation, which actually involves two steps, creating the playlist and then adding video IDs to it. Since I logged all of the video IDs when they were uploaded, it was easy to read that file back and immediately add those videos to the playlist after creation. I did have to make one tiny config file that lets me set the playlist name, and also the content that goes in each video description above the boilerplate.


The final step is for me to go and double check that the titles of the private videos/playlist aren't wonky on youtube, then once thats done I have ANOTHER script that goes through and flips the visibility to public for all of the videos and the playlist, using that same log file from before.


All of these scripts can be called independently if needed, but I have a batch file that I'm running which takes care of each step in sequence: creating mp4s from mp3s, getting video title data from the filename, uploading the mp4s, creating a new playlist and adding the videos to it, then flipping the privacy on all of the above. It's been more fun than I would have thought :D


Only downside is that the youtube api limits you to creating 10 playlists per 24 hours, and throttles you once you upload 50 videos in a day. Not a dealbreaker for any normal month, but kinda sucks for me trying to catch up on the past year's worth of content.


You can view my github for this here : https://github.com/K...f-duels-scripts

  • 7

<tibone> 120bpm in 4/4
<tibone> PROG AS FUCK


sfWV4OE.png1306536299140-dumpfm-DurkFunk-katamari_pkirby_roll_by_spazmaster6000-d6bt3h3.gif0Pn6mR8.png  JIEXWZw.png
PC Game Metal

#260 Ivan Hakštok

Ivan Hakštok

    Shizz Knight

  • Members
  • PipPipPipPipPipPip
  • 727 posts
  • Location:Ston, Croatia

Posted 11 January 2019 - 03:07 PM

Nice work! Automatic playlist is something I thought of but never implemented in my previous DoD script, I used to just make a playlist manually and move all files into it once everything was done uploading, and you can imagine what a pain that was when I was uploading the entire DoD library to Youtube.

  • 1

#261 raubhimself



  • Shizzadmin
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 35,461 posts
  • Location:Phoenix, AZ

Posted 11 January 2019 - 03:35 PM

Does the YouTube API have any sort of batch request? I use the Docs API at work on one of our projects to generate a dynamic Sheets file based on some user input and database information as well as share it with a dynamic group of users. I make a bunch of request objects but they are just added to one batch request object, and that batch request is the only real API call I make. 

  • 1

'the smuggest amongst us will always be the quickest to point out the most minor transgressions of others around them'- a quote i just made up and put quotes around to make it seem slightly fancier

#262 pingosimon


    Shizz Overlord

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 17,239 posts
  • Location:San Diego

Posted 11 January 2019 - 06:39 PM

DoD suggestion: when opening the "Listen" page, it takes a good few seconds to load the entire song list.  Could it start, by default, with a filter to drastically reduce the number of songs shows immediately?  Maybe limit to the last/current month?

  • 0

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users