Non-Recursively Deleting A Folder In PHP

In PHP, you can’t just delete a folder using rmdir unless the folder’s empty. You can, however, do so using rmdirr function, wherein it will remove both the folder and its contents recursively. But using this [recursive] method opens up the possibility for PHP to segfault/crash, specifically and especially if you have deeply nested directories [...]

Continue Reading →

Printing Messages Backwards With Python

Today’s featured Python script is a little snippet created by John Santiago Jr. just for fun but of course you might find his code very helpful. This rudimentary script will simply print the message inputted by the user backwards using either string slicing or list() function. So if you’re feeling like going a little ‘Da [...]

Continue Reading →

Ruby Tips On Struct And OStruct Classes

Steve Klabnik wrote an interesting piece on how to take make the most of Ruby’s classes, which are the Struct class and OpenStruct class. In his blog post, Steve shares its documentation and gives a few good examples of where and when to take advantage of these structs and use them quite effectively. For instance, [...]

Continue Reading →

Video Interview Of Python Author Guido Von Rossum

Today’s post is another treat for all you Python programmers and users. This video interview stars the father of Python himself, Guido Von Rossum, in which he talks about Python’s [bright] future, its current state as a programming language and also a few helpful tips and tricks as well. Photo credits: Maestrosdelweb.Com It’s only about [...]

Continue Reading →

How To Connect To MySQL With Python

If you’re going to be working in a web environment using Python, chances are that you’ll be using MySQL as database management system. That is why software developer Jeremy Morgan of Silicon Forest created this tutorial on how to connect to a MySQL database using Python, which is our featured tutorial of the day. I’ll [...]

Continue Reading →

Getting A File’s Information In Ruby Using File::Stat

Here’s another nice tip from Michael Morin on how to get a file’s information in Ruby using the File::Stat class; information such as such as file size, date last modified, date last accessed, and more. This can be quite useful in situations wherein you want to query the operating system about a particular file without [...]

Continue Reading →

TKinter Programming

This combination of Python and Tkinter is a fast and easy way to create GUI applications. Tkinter is the standard GUI library for Python. It is also implemented as a Python wrapper around a Tcl interpreter that is embedded in the Python interpreter. It has a number of modules that gives a powerful interface to [...]

Continue Reading →

Page 3 of 3«123