Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,261 Programmers. There are 1,906 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

DIC Newsletter: Call for Articles

 
Reply to this topicStart new topic

DIC Newsletter: Call for Articles

skyhawk133
post 11 Apr, 2008 - 08:56 AM
Post #1


Big Money... No Wammies!

Group Icon
Joined: 17 Mar, 2001
Posts: 13,547



Would you like your name and blog/web site featured in the upcoming Dream.In.Code Newsletter? We're looking for original articles to share with all 80,000 members.

We'll be picking one article a month to include in the DIC newsletter. You can write about anything related to the programming world. From interviewing tips, to new technology news, how to implement a technology in an organization, problems to avoid, techniques and best practices, etc.

The newsletter will go out the third Wednesday of every month (this coming Wednesday, April 16).

Keep articles concise and to the point. There's no set length, but it should be informative, interesting, or controversial.

Include a link to your web site, or a short bio about you for readers to click/read.

Post your articles here and I will select one for the upcoming newsletter.

We'll also feature your article on the homepage for discussion and link to it from the newsletter.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


MarkoDaGeek
post 11 Apr, 2008 - 09:05 AM
Post #2


Dirty Technophile

Group Icon
Joined: 13 Oct, 2001
Posts: 10,491

Great idea!


I recently wrote about the response to a comment made by Bill Gates last week about the upcoming Windows 7. A lot of sources around the internet we're taking the comment far too seriously.

It's a short entry but it's somewhat controversial.

http://www.marklangenfeld.com/2008/04/07/w...ear-not-likely/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

orcasquall
post 11 Apr, 2008 - 08:39 PM
Post #3


D.I.C Head

Group Icon
Joined: 14 Sep, 2007
Posts: 139

Here's my submission. Chris, you might want to edit a little on the display of links, line breaks or the code display. Because it's written for the newsletter, I hope the mentors cut me some slack for not
code.gif smile.gif

/*-----------------------------------------------
Use Format(), don't concatenate
-----------------------------------------------*/
Do you concatenate your SQL statements?

string sSQL = "update BlameLog"
+ " set me = '" + txtBlameDesc.Text + "'"
+ " where user_id = '" + txtUserID.Text + "'";

Oh the horror! The ugliness! Apparently you haven't read
about the exploits of a mom (http://xkcd.org/327/).

Nor have you maintained any applications where you need to
debug an SQL statement. Apparently. Try copying that into
your database editor and run it. Oh you can't? Because
you've got to remove all the idiotic plus signs and figure
out where all the single quotes are and where the double
quotes start and end.

Since you're obviously intent on exposing yourself to
SQL injection attacks and invite maintenance nightmares,
let me show you a better way.

string sSQL = string.Format("update BlameLog set me = '{0}' where user_id = '{1}'", txtBlameDesc.Text, txtUserID.Text);

Now at one glance, you know the structure of the SQL statement.
You can also easily copy the entire statement into your database
editor, make small changes to the parameters and you can run it.

The Format() function can take up to 3 parameters this way.
If you have more, then use this

object[] oaParams = { "up", "orcasquall" };
string sSQL = string.Format("update BlameLog set me = '{0}' where user_id = '{1}'", oaParams);

Dump your parameters into the object array. Then continue
numbering up the format items, so {6} refers to the 7th item.

I still hope you see the error of your ways, and use
proper SQL parameters...


Vincent (aka orcasquall)
http://polymathprogrammer.com/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

born2c0de
post 13 Apr, 2008 - 12:47 AM
Post #4


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,298

I had written a short article about 2 weeks back for my college Magazine.
It's called Linux For Dummies???

I've attached a DOC file to this post.
You can also find it here.

Attached File  LINUX_FOR_DUMMIES.doc ( 25.5k ) Number of downloads: 31
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

.Maleficus.
post 15 Apr, 2008 - 03:27 AM
Post #5


D.I.C Head

**
Joined: 7 Mar, 2008
Posts: 64

I wrote a tutorial on my website called Linux in a Nutshell (A Beginner's Guide).

Don't worry about header error on the page, it'll still load. I haven't had time to work that bug out yet.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 10:15AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month