« November 2005 | Main | January 2006 »

December 31, 2005

mod_rewrite, a beginner's guide (with examples)

mod_rewrite is used for rewriting a URL at the server levelThis article shows you how to redirect all your URLs at a single "mother" page, for reprocessing, and how to stop people from hotlinking to your images.
Link: http://digg.com/programming/mod_rewrite%2C_a_beginner_s_guide_%28with_examples%29

Learn AJAX in 30 seconds (fixed link)

Well, it took me 2 minutes but this is still need-to-know. There will be much copy/pasting after reading this article...
Link: http://digg.com/programming/Learn_AJAX_in_30_seconds_%28fixed_link%29

The Evolution of a Programmer

From High School to Chief Executive.
Link: http://digg.com/programming/The_Evolution_of_a_Programmer_2

December 30, 2005

Open-Source Visual Studio 2005 alternative

SharpDevelop 2.0, Beta 1 is available. It is an open-source alternative to Visual Studio 2005, with the added benefit that it can create executables targeting the 1.0, 1.1, and 2.0 .NET Framework, as well as Mono 1.1. C# and Visual Basic.NET are both supported.
Link: http://digg.com/programming/Open-Source_Visual_Studio_2005_alternative

December 29, 2005

Using regular expressions in PMD rules

XPath has a bunch of handy functions that you can use for writing PMD rules. For example, the AbstractNaming rule finds abstract classes that aren't named something like AbstractFoo using the starts-with function: //ClassOrInterfaceDeclaration [@Abstract='true' and @Interface='false'] [not (starts-with(@Image,'Abstract'))] But...
Link: http://tomcopeland.blogs.com/juniordeveloper/2005/12/using_regular_e.html

December 28, 2005

What Tech Skills Are Hot For 2006?

Developers, security experts and project managers will be in demand. Its about time.
Link: http://digg.com/programming/What_Tech_Skills_Are_Hot_For_2006_

Complete introduction to CSS

This article will take you through the beginning stages of picking up CSS. Covering; where to put your style sheet, creating a class, common CSS attributes, applying CSS to a HTML attribute, redefining a tag, shorthand CSS, pseudo elements and media-dependent style sheets.
Link: http://digg.com/programming/Complete_introduction_to_CSS

3D graphics in 64KB

This website shows amazing programming ability. These people have squeezed amazing 3D graphics into tiny filesizes by using assembler. There's even software on the website to try making a tiny demo yourself.
Link: http://digg.com/programming/3D_graphics_in_64KB

Using Gnulib to improve software portability

Many, if not most, free and open source software projects are developed primarily on Linux-based systems using the GNU C Library (glibc). Projects that use glibc are likely to depend on functions that are not available on systems that use different C libraries, such as the different BSD flavors. When packages are built on systems that don't use glibc they often fail, because the other C libraries are missing functions found in glibc. The GNU Portability Library can help developers with cross-platform programming needs.
Link: http://programming.newsforge.com/article.pl?sid=05/12/16/2052201&from=rss

Xbox 360 Hackable Disk Ripped

"It seems Microsoft was in such a hurry to get this stuff out that they forgot to set the media protection. This leaves hackers with the posibility to hack around with this disc that load from a normal DVDR5 backup! ... all datafiles on this disc isn't signed in any way, and will allow for extensive modification for producing exploits ..."
Link: http://digg.com/programming/Xbox_360_Hackable_Disk_Ripped

Why SSN should NOT be stored as an integer in a database

If you have a hand in storing SSN's on any level during developing, read this. Personally, I've seen this happen too many times.
Link: http://digg.com/programming/Why_SSN_should_NOT_be_stored_as_an_integer_in_a_database

Build your own feed reader on top of Google's Feed API

"You can power an application both online and offline using Google as your backend and focus on building new experiences on top of the data. Advanced functionality is available with a numeric Google ID and some variable tweaks."
Link: http://digg.com/programming/Build_your_own_feed_reader_on_top_of_Google_s_Feed_API

December 27, 2005

Programming Cheat Sheets

Check these cool printable progamming cheat sheets.
Link: http://digg.com/programming/Programming_Cheat_Sheets

Using Java Could Lead to Death

"...the failure of Java technology could lead directly to death, personal injury, or severe physical or environmental damage..."
Link: http://digg.com/programming/Using_Java_Could_Lead_to_Death

Create dynamic images using PHP

This tutorial shows you how to create a little man holding a sign that displays various messages. (You know, like those you see on a lot of forum signatures.)
Link: http://digg.com/programming/Create_dynamic_images_using_PHP

Become an Independent Programmer in 1068 Days

Gus Mueller's 7.5 tips for making it as an independent developer, in 1068 Days.
Link: http://digg.com/programming/Become_an_Independent_Programmer_in_1068_Days

December 26, 2005

.NET C# Wrapper for Berkely DB Now Available

Jeff Rafter recently informed me of the availability of a .NET C# Wrapper for Berkely DB a friend of his developed, so I'm spreading the word as far and wide as possible.
Link: http://www.oreillynet.com/pub/wlg/8855?CMP=OTC-TY3388567169&ATT=.NET+C#+Wrapper+for+Berkely+DB+Now+Available

eXplorations, Episode #1: OASIS Open Document Format Debate

As Kurt Cagle posted last week, the first real eXplorations podcast is now available for download. This is a simple follow-up based on the fact that looking at the logfiles it seems a few people may have added this feed to their feedreader's for notification of each new podcast. We've shortened things up, this time bringing the total length to just over twenty(20) minutes, sixteen(16) of which is the Open Document/Open XML debate with just over four(4) minutes of music and fun.
Link: http://www.oreillynet.com/pub/wlg/8854?CMP=OTC-TY3388567169&ATT=eXplorations+Episode+#1:+OASIS+Open+Document+Format+Debate

December 25, 2005

Programmers' Tools

This site provides a listing of compilers, IDEs, editors, decompilers, debugging tools, books & tutorials for popular programming languages (C, C++, JAVA, Pascal, Basic, ...). Also contains information for Setup tools, EXE compressors anti-cracking protectors and other interesting stuff. A huge site, and seems to be updated quite often.
Link: http://digg.com/programming/Programmers_Tools

December 24, 2005

Learn c# The Easy Way

this has to be the most simplified tutorials ive ever seen when it comes to learning a new language!
Link: http://digg.com/programming/Learn_c_The_Easy_Way

Seven Habits of Highly Effective Programmers

Must read if you are a new or pro programmer.
Link: http://digg.com/programming/Seven_Habits_of_Highly_Effective_Programmers

December 23, 2005

POG - A PHP Code Generator

I've been using and following POG for a while now, and I must say, version 1.6 is very exciting, even though it's still beta. Give it a try, and if you like it, digg it!
Link: http://digg.com/programming/POG_-_A_PHP_Code_Generator

December 22, 2005

3 Useful PHP& XML tutorials

Here are 3 useful tutorial on how to parse XML using PHP.
Link: http://digg.com/programming/3_Useful_PHP_XML_tutorials

Google Hires Inventor of Python

Since Google uses Python extensively in its own projects, perhaps it was only a matter of time...
Link: http://digg.com/programming/Google_Hires_Inventor_of_Python

HOW-TO: build a search engine in PHP

No more database-dependent SQL queries, no more external library integration. At last, PHP developers will not dream of Lucene anymore. They can develop their own search engine, with results ordered by relevancy and smart indexing. Take a look at this fifteen-minutes tutorial from the symfony project.
Link: http://digg.com/programming/HOW-TO%3A_build_a_search_engine_in_PHP

December 21, 2005

Survey: Open source developers jump on bugs, open to closed tech

It comes as no surprise that open source software developers are fixing bugs faster and faster, but the majority of Linux developers' willingness to use proprietary products -- a la the Bitkeeper debacle -- may be more likely to raise eyebrows. Both findings -- that open source developers find and repair severe bugs in less than four hours on average and that 64 percent of OSS developers would purchase a tool for Linux if it worked well even if it was not open source -- come from the Evans Data Fall 2005 developer survey.
Link: http://programming.newsforge.com/article.pl?sid=05/12/12/2138242&from=rss

A Timely Start

tile imageA well-written Perl program should, in theory, beat a shell script, right? In theory. In practice, sometimes the details of your Perl installation have more to do with why your program is slow than you might believe. Jean-Louis Leroy recently tracked down a bottleneck and wrote up his experiences with making Perl programs start faster.
Link: http://www.perl.com/pub/a/2005/12/21/a_timely_start.html?CMP=OTC-BD0016219291&ATT=A+Timely+Start

JSON and the Dynamic Script Tag: Easy, XML-less Web Services for JavaScript

tile imageJason Levitt returns with a piece explaining how to use AJAX and JSON to interact with web services from JavaScript in a seamless, cross-domain, cross-browser fashion.
Link: http://www.xml.com/pub/a/2005/12/21/json-dynamic-script-tag.html?CMP=OTC-TY3388567169&ATT=JSON+and+the+Dynamic+Script+Tag:+Easy+XML-less+Web+Services+for+JavaScript

Post Your Code

This is a great place to quickly post most any type of code to send to your friend. This is great when a friend is having problems and they don't want to save it to a .txt and email it to you.
Link: http://digg.com/programming/Post_Your_Code

Make an RSS Aggregator with PHP and AJAX

Imagine using a simple HTML file to send a request to a server-side script, receive a custom XML file based on that request, and then display it to the user without ever refreshing the browser! Kris Hadlock explains how to use a combination of PHP and AJAX to create real-time data transfers in any application without a browser refresh.
Link: http://digg.com/programming/Make_an_RSS_Aggregator_with_PHP_and_AJAX

Top 7 PHP Security Blunders

Many of the PHP features can lead a programmer inadvertently to allow security holes to creep into a Web application. The popular security mailing lists teem with notes of flaws identified in PHP applications, but PHP can be as secure as any other language once you understand the basic types of flaws PHP applications tend to exhibit.
Link: http://digg.com/programming/Top_7_PHP_Security_Blunders

December 20, 2005

Video Tutorials: Code your own C++ RPG!

Showing everything from start to finish, these video tutorials will show you how to create a text based RPG using C++.
Link: http://digg.com/programming/Video_Tutorials%3A_Code_your_own_C_RPG_

"Hello World" programs as would be written by various types of developers

A compilation of *Hello World* programs designed by various categories of *developers*.
Link: http://digg.com/programming/_Hello_World_Programs

.NET and XML Tutorial Update

To those of you waiting for the promised updated sample code, my apologies.
Link: http://www.oreillynet.com/pub/wlg/8810?CMP=OTC-TY3388567169&ATT=.NET+and+XML+Tutorial+Update

Unobtrusive Degradable Ajax Style Sheet Switcher

The Unobtrusive Degradable Ajax Style Sheet Switcher combines the power of Server Side processing and DOM scripting to swap style sheets on the fly with the power of Ajax.

If JavaScript is disabled - UDASSS degrades gracefully to improve your website accessibility.

Very cool library indeed!
Link: http://digg.com/programming/Unobtrusive_Degradable_Ajax_Style_Sheet_Switcher

Finding opportunities for System.arraycopy

Fabio Insaccanebbia has come up with another fine rule for PMD - AvoidArrayLoops finds for/while loop array copies that can be replaced with a call to System.arraycopy. For example, this: public class Foo { public void bar(int[] a, int[] b)...
Link: http://tomcopeland.blogs.com/juniordeveloper/2005/12/finding_opportu.html

Chat-O-Licious - AJAX/ASP.Net realtime chat client

Here's another neat realtime chat client using AJAX and ASP.Net. Minimalistic, fast, and easy to use :)
Link: http://digg.com/programming/Chat-O-Licious_-_AJAX_ASP.Net_realtime_chat_client

December 19, 2005

Learning JavaScript Basics

This detailed article covers the basics for a beginner to learn JavaScript. Also, simple code samples along the way as you learn.
Link: http://digg.com/programming/Learning_JavaScript_Basics

Lots of PHP tutorials, beginner to advanced

A nice collection of various PHP tutorials, covering the basics, and some advanced stuff
Link: http://digg.com/programming/Lots_of_PHP_tutorials%2C_beginner_to_advanced

Subversion walloping CVS on RubyForge

It's been about a week since we announced Subversion availability on RubyForge - and a clear pattern has developed. Out of the fifteen projects that have been submitted since then, twelve of them have chosen Subversion over CVS! Overall, only...
Link: http://tomcopeland.blogs.com/juniordeveloper/2005/12/subversion_wall.html

1, 2, 3, 4, 5 not 1,10,11,12,2,3,4,5

Why computer's mess up ordering files when you want to sort them by numerical order, and how we could fix it.
Link: http://digg.com/programming/1%2C_2%2C_3%2C_4%2C_5_not_1%2C10%2C11%2C12%2C2%2C3%2C4%2C5

The World's Longest Palindromes

A palindrome is a word, phrase, verse or sentence that reads the same backward or forward...A computer program was created that resulted in a 17,259 word palindrome, the longest one to date.
Link: http://digg.com/programming/The_World_s_Longest_Palindromes

December 18, 2005

The ultimate source for Top Gear and Fifth Gear episodes

You will find downloads, episode guides, and forums all dedicated to these two awesome British television programs.
Link: http://digg.com/programming/The_ultimate_source_for_Top_Gear_and_Fifth_Gear_episodes

December 16, 2005

Israeli Mathematician Finds Faults in Google's Math

An Israeli mathematician, Hillel Tal-Ezer, of the Academic College of Tel Aviv in Yaffo has written a paper on the faults of google's mathematical algorithms for page ranking. Sorry about the way I did this, but Digg does not allow www2 links.
Link: http://digg.com/programming/Israeli_Mathematician_Finds_Faults_in_Google_s_Math

December 15, 2005

Logic Programming with Perl and Prolog

tile imagePerl isn't the last, best programming language you'll ever use for every task. (Perl itself is a C program, you know.) Sometimes other languages do things better. Take logic programming--Prolog handles relationships and rules amazingly well, if you take the time to learn it. Robert Pratte shows how to take advantage of this from Perl.
Link: http://www.perl.com/pub/a/2005/12/15/perl_prolog.html?CMP=OTC-BD0016219291&ATT=Logic+Programming+with+Perl+and+Prolog

How to install open Source Digg code (Meneame)

Recently a site called Meneame (which emulated digg.com) opened it's source code up. The problem for Anglophones is that the code is written in Spanish and installation documentation is non-existant. Here's how you get it running.
Link: http://digg.com/programming/How_to_install_open_Source_Digg_code_%28Meneame%29_

Managing the insider threat through code obfuscation

Corporations spend billions building effective security protocols, but complacency and a desire for efficiency can soon lead to deviations from security protocols that workers gradually become accustomed to. The result is that small but potentially crippling holes develop in even the most effective systems, creating openings for attackers, including, potentially, insiders. Countering the insider threat requires a comprehensive, multi-tiered approach that includes physical controls, software access controls, and software protection/obfuscation.
Link: http://software.newsforge.com/article.pl?sid=05/12/13/1940258&from=rss

Some Great CSS Tips from SimpleBits

An ongoing collection of various CSS tips, experiments and techniques.
Link: http://digg.com/programming/Some_Great_CSS_Tips_from_SimpleBits

Kurt Cagle and M. David Peterson - Our First "State of the XML Industry" Podcast Is Now Available

Kurt Cagle and I have been trying for some time now to create an "State of the XML Industry" type podcast. After overcoming what amounted to a ridiculous number of obstacles, we've finally accomplished our task. Here is a recap of the first "official" post regarding the availability of the first show.
Link: http://www.oreillynet.com/pub/wlg/8765?CMP=OTC-TY3388567169&ATT=Kurt+Cagle+and+M.+David+Peterson+-+Our+First+State+of+the+XML+Industry+Podcast+Is+Now+Available

Patches fix Perl sprintf buffer overflow

The Perl community has released a fix to the sprintf function that was recently discovered to have a buffer overflow in very specific cases. All Perl users should consider updating immediately.
Link: http://www.oreillynet.com/pub/wlg/8763?CMP=OTC-BD0016219291&ATT=Patches+fix+Perl+sprintf+buffer+overflow

Save thirteen bytes - (null instanceof String) is false!

Got any code like this? if (x != null x instanceof Foo) { // do something} Certainly the JDK does - at least, in JDK 1.4.2, PlainSocketImpl.java has a bunch of these. But since instanceof expressions return false if the...
Link: http://tomcopeland.blogs.com/juniordeveloper/2005/12/save_thirteen_b.html

December 14, 2005

Putting RSS to Work: Immediate Action Feeds

tile imageMark Woodman shows us how to enhance the usability of RSS and Atom syndication channels with an idea he calls Immediate Action Feeds.
Link: http://www.xml.com/pub/a/2005/12/14/putting-rss-to-work-immediate-action-feeds.html?CMP=OTC-TY3388567169&ATT=Putting+RSS+to+Work:+Immediate+Action+Feeds

Top 10 Innovative Web 2.0 Applicat