• Home

CodingExperiments.com

$ sudo make money

Search

Category:

  • Apple Inc.
  • Facts
  • Fun
  • Google
  • Google Android
  • Ideas
  • Internet
  • Linux
  • Microsoft
  • Programming
  • Rants
  • Security
  • Uncategorized
  • web 2.0

Archives:

  • April 2010
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007

Pages

  • About
  • About
    • The Authors
  • Commenting your code
  • How to Write Papers with Groff
  • ModCMS Anti-Spam Component Set
  • ModCMS Technical Specifications
  • Regular Expressions Guessing Game
  • Saving code directly to a web server
  • The (Almost) Perfect PHP 404 Page

Meta:

  • RSS
  • Comments RSS

Awesomeness tracker

CodingExperiments at Blogged View blog authority
Free Page Rank Tool

Today Begins the Start of the Coding of ModCMS

January 26th, 2008 by Rishabh Mishra

Note, I have changed the name from ModCMS to BurstCMS.

I have started coding ModCMS today. The first thing that I’m working on is the package manager. I have come up with a basic layout for the XML file that will contain information on the modules, I am also working with SimpleXML to create an interface to display the information.

Currently, no actual modules and components exist, so just random test modules are being used. The ModCMS package manager will require SimpleXML as well as the ability to access remote files.

Posted in Ideas, Uncategorized | View Comments

Sudo: Not secure enough

January 19th, 2008 by Rishabh Mishra

UPDATE: I really don’t think that this is a problem anymore. I think that this is a rather silly post. Please ignore it.

This post assumes that you know a few things about Unix-based operating systems. You will need to know about su and sudo as well as what the root or superuser is.

Some people know this, and some people don’t. On Ubuntu-based systems, by default, the root user has a complex, randomly generated password and is generally not used. The idea is to have a “sudo-capable” user that is able to do root tasks with the “sudo” command. It allows you to be root for one command and requests your password instead of the root password. That way, the root password isn’t shared. If a virus attempts to use sudo, it meets a password dialog.

If you try to use su, which basically gives you the terminal of another user, you have to type their password. If you try to use su to be root, you would have to know the complex root password. This isn’t so if you type “sudo su”. That gives you the root terminal without requiring the complex password.

I think that this is a minor security flaw as it defeats the point of the complex random password that is set to the root user by default.

Posted in Rants | View Comments

Proper use of the PHP function debug_backtrace ();

January 15th, 2008 by Rishabh Mishra

The PHP function debug_backtrace ( ); is very useful, but it can be dangerous. A beginning developer trying to find a bug on a production-line website might be inclined to use print_r ( ); to show what debug_backtrace ( ); returns, as it returns data in the format of an array.

The function print_r ( ); displays things directly into the screen. That may not be very wise for a production-line website. After a little thinking, I came up with a secure way to view backtraces. It’s an easy one-line piece of code that can be inserted into a PHP (5) script.

file_put_contents (‘backtrace.txt’, print_r (debug_backtrace (), true));

Posted in PHP | View Comments

Layout of ModCMS gallery module

January 13th, 2008 by Rishabh Mishra

Note, I have changed the name from ModCMS to BurstCMS.

I’m currently working on a ModCMS image gallery module that will have several interesting features including using AJAX to load images. I haven’t done any of the PHP yet, as that would require coding the ModCMS core first (which I haven’t done at the time of writing). You can see the basic HTML and CSS at this location.

Posted in Ideas, Uncategorized | View Comments

Plan your programs with VYM

January 10th, 2008 by Rishabh Mishra

VYM is an application available for Linux that shows "mind maps". There are several programs that do this on the market already, but they often cost a lot of money. VYM is totally free.

You could use VYM to hash out the details of a new application, a database structure, or the organization of a website. I think I’ll find it pretty useful in developing ModCMS.

You can even export the mind map to XHTML. Sorta useful if you would like to use it for an interesting navigational system like the VYM website did.

Update: If you don’t like VYM, you can find many other mind-mapping applications at mind-mapping.org

Posted in Apps | View Comments

Happy New Year

January 1st, 2008 by Rishabh Mishra

We hope you had fun on New Years Eve. Here are some resolutions that you can make to improve your code.

  • Change existing code, instead of rewriting it.
  • Comment your code.
  • Use familiar forms of navigation

Posted in Fun, Uncategorized | View Comments

 
Wordpress Themes by and Website Templates by Blogcut Blogged Blog Directory Blog Directory - Blogged