School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,157 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,535 people online right now. Registration is fast and FREE... Join Now!




DIC Newsletter: Call for Articles

 

DIC Newsletter: Call for Articles

skyhawk133

11 Apr, 2008 - 07:56 AM
Post #1

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,883



Thanked: 156 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
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 online!Profile CardPM
+Quote Post


MarkoDaGeek

RE: DIC Newsletter: Call For Articles

11 Apr, 2008 - 08:05 AM
Post #2

Dirty Technophile
Group Icon

Joined: 13 Oct, 2001
Posts: 11,124



Thanked: 2 times
Dream Kudos: 970
Expert In: Computer Networking, Web Development, Blogging

My Contributions
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
+Quote Post

orcasquall

RE: DIC Newsletter: Call For Articles

11 Apr, 2008 - 07:39 PM
Post #3

D.I.C Head
Group Icon

Joined: 14 Sep, 2007
Posts: 158



Thanked: 10 times
Dream Kudos: 50
My Contributions
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
+Quote Post

born2c0de

RE: DIC Newsletter: Call For Articles

12 Apr, 2008 - 11:47 PM
Post #4

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

Joined: 26 Nov, 2004
Posts: 4,550



Thanked: 98 times
Dream Kudos: 2825
Expert In: J2ME, 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
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: 53

User is offlineProfile CardPM
+Quote Post

.Maleficus.

RE: DIC Newsletter: Call For Articles

15 Apr, 2008 - 02:27 AM
Post #5

D.I.C Head
**

Joined: 7 Mar, 2008
Posts: 129



Thanked: 2 times
My Contributions
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
+Quote Post

Core

RE: DIC Newsletter: Call For Articles

25 Jan, 2009 - 02:32 PM
Post #6

The .NET Dude
Group Icon

Joined: 8 Dec, 2008
Posts: 3,041



Thanked: 217 times
Dream Kudos: 900
Expert In: C#, VB.NET, WPF, .NET Framework

My Contributions
Just curious, can I still contribute with articles to the Dream.In.Code newsletter? I have some articles regarding my XNA work, so if it is possible, I would like to contribute.
User is online!Profile CardPM
+Quote Post

firebolt

RE: DIC Newsletter: Call For Articles

2 Apr, 2009 - 10:27 PM
Post #7

D.I.C Lover
Group Icon

Joined: 20 Feb, 2009
Posts: 5,476



Thanked: 77 times
Dream Kudos: 1675
My Contributions
You could also publish this in a PDF and place it on DIC or whatever.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 05:45PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month