Really Simple PHP Login / Logout Script Example

One of the first scripts people new to PHP (or any server-side scripting really) create is a login and logout form for their site. Often times beginners get a little confused as to all the parts necessary to creating such a thing. So I thought it would be helpful if I showed a really basic and easy to use PHP login / logout script. The script uses an existing database ...

Myth: There is a “right” first language to learn.

I can't even count how many times I have seen someone new to the programming scene ask the question "I am new to programming and want to know which is the right language to learn first." Then of course there are a ton of veteran programmers that jump in there and start recommending every language under the sun and all sorts of ways to go about learning them. "No learn ...

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 ...