Batch Renaming of Files Using Recursion in Python

Someone came into the Dream.In.Code forums the other day asking about batch renaming of files using Python. I thought I would work out the example for everyone to see and create something that they could add to their own personal libraries of code. Python makes this pretty easy to do using "os" and "os.path" but one tricky part I found was dealing with the method isdir() and similar functions which ...

Integrate Your Favorite YouTube Channels with JavaScript

Like me you probably have several YouTube channels that you like to follow. Maybe you enjoy that crazy cat video channel or the channel which shows stupid people doing stupid stuff. Either way you want to bring those favorite channels to the world in all their glory on your site. One thing you want to do however is combine those channels into one feed and display the feed on your ...

JavaScript and PHP – Just Take the Red Pills and Be Happy in Wonderland

First I want to say Happy 2015 everyone! It seems to me the more frustrated programmers get with their code problem domains the more likely they are to take it out on the languages they are using. Naturally JavaScript and PHP both take the brunt of the abuse because of their popularity, sometimes necessity and of course their numerous implementation oddities. A lot of programmers working with these languages == ...

Passing Data Between Forms – Using Delegates and Events

Back in an article I wrote in 2010 titled "Passing Data Between Forms in C# or VB.NET", I described one of a couple methods for passing data between two forms in a .NET forms project. One method was to publicly expose a method on a child form that the parent form could then call on when needed. At the same time I also mentioned, and advised against, using a public ...

Easy Way to Post Multiple JavaScript Values to PHP Using jQuery AJAX

For the sake of argument, let's assume you have to pass a plethora of JavaScript values to PHP through a POST submission. Maybe it is an array of numbers or simple point objects. You want to do this quickly and don't want to be bothered with using a hidden form or having to list out a ton of fields in some long data string that you give to a jQuery ...

A Game of Memory in VB.NET

One of the first projects that someone new to programming often wants to do is a game. Often times they want to do something they have seen on their consoles or mega computer games without realizing how much work actually goes into designing and implementing a game of that scope. After reading a book about programming they realize how tough those games are and that games of that scope usually ...