Click here to Skip to main content
11,715,160 members (63,974 online)

Clever Code

RSS Feed RSS feed

Showcase your best code, your most elegant solution, or your most hard fought subtle bug you've found and fixed. Please, do not post programming questions in this forum - they will be removed.

 
GeneralRe: Simulating C++0x literals - with enums! Pin
exyyle4-Jul-09 19:33
memberexyyle4-Jul-09 19:33 
GeneralUbiquitous apr_bucket errors. [modified] Pin
dpminusa8-Jun-09 1:34
memberdpminusa8-Jun-09 1:34 
GeneralHard to find bugs Pin
RomTibi30-May-09 11:44
memberRomTibi30-May-09 11:44 
GeneralRe: Hard to find bugs Pin
Walt Fair, Jr.30-May-09 17:34
memberWalt Fair, Jr.30-May-09 17:34 
GeneralRe: Hard to find bugs Pin
RomTibi30-May-09 19:05
memberRomTibi30-May-09 19:05 
GeneralRe: Hard to find bugs Pin
supercat94-Jun-09 5:43
membersupercat94-Jun-09 5:43 
GeneralRe: Hard to find bugs Pin
Luc Pattyn4-Jun-09 12:49
mvpLuc Pattyn4-Jun-09 12:49 
GeneralRe: Hard to find bugs Pin
supercat95-Jun-09 8:48
membersupercat95-Jun-09 8:48 
GeneralRe: Hard to find bugs Pin
Luc Pattyn5-Jun-09 9:06
mvpLuc Pattyn5-Jun-09 9:06 
GeneralRe: Hard to find bugs Pin
supercat95-Jun-09 10:24
membersupercat95-Jun-09 10:24 
GeneralRe: Hard to find bugs Pin
Gary R. Wheeler14-Jun-09 1:32
memberGary R. Wheeler14-Jun-09 1:32 
GeneralRe: Hard to find bugs Pin
Maxxx_14-Jun-09 19:28
memberMaxxx_14-Jun-09 19:28 
GeneralRe: Hard to find bugs Pin
Maxxx_14-Jun-09 19:08
memberMaxxx_14-Jun-09 19:08 
GeneralFun Perl one-liner Pin
Michael Dunn20-May-09 18:45
sitebuilderMichael Dunn20-May-09 18:45 
Some time ago, there were some puzzle posts in the Lounge where the content was the ASCII values, in hex, of text. So instead of "Hello!" it was "48 65 6C 6C 6F 21". Of course, the talk turned to how to decipher the posts using code. After a few iterations with some other folks who knew Perl, I ended up with:
print map { chr hex } split foreach( <> )
Complicated, elegant, and subtle... all at once!

(I only later remembered that foreach and for do the same thing, so I could've made it even shorter!)

--Mike--
Dunder-Mifflin, this is Pam.

GeneralRe: Fun Perl one-liner Pin
leppie24-May-09 23:33
mvpleppie24-May-09 23:33 
GeneralRe: Fun Perl one-liner Pin
dpminusa8-Jun-09 0:57
memberdpminusa8-Jun-09 0:57 
GeneralRe: Fun Perl one-liner Pin
Michael Dunn9-Jun-09 15:57
sitebuilderMichael Dunn9-Jun-09 15:57 
GeneralRe: Fun Perl one-liner Pin
dpminusa9-Jun-09 20:09
memberdpminusa9-Jun-09 20:09 
GeneralNothing big, just a small LINQ query [modified] Pin
Computafreak15-May-09 9:36
memberComputafreak15-May-09 9:36 
GeneralRe: Nothing big, just a small LINQ query Pin
Robert Rohde16-May-09 22:27
memberRobert Rohde16-May-09 22:27 
GeneralRe: Nothing big, just a small LINQ query [modified] Pin
Computafreak17-May-09 1:39
memberComputafreak17-May-09 1:39 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult17-May-09 5:41
memberPIEBALDconsult17-May-09 5:41 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak17-May-09 5:58
memberComputafreak17-May-09 5:58 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult17-May-09 10:54
memberPIEBALDconsult17-May-09 10:54 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak17-May-09 21:55
memberComputafreak17-May-09 21:55 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult18-May-09 3:45
memberPIEBALDconsult18-May-09 3:45 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak18-May-09 4:10
memberComputafreak18-May-09 4:10 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult18-May-09 4:15
memberPIEBALDconsult18-May-09 4:15 
Generallocal variables in EF Linq query Pin
Mark Nischalke1-Apr-09 2:39
memberMark Nischalke1-Apr-09 2:39 
GeneralRe: local variables in EF Linq query Pin
Judah Himango17-Apr-09 7:12
memberJudah Himango17-Apr-09 7:12 
GeneralRe: local variables in EF Linq query Pin
Mark Nischalke17-Apr-09 7:24
memberMark Nischalke17-Apr-09 7:24 
GeneralRe: local variables in EF Linq query Pin
Judah Himango17-Apr-09 7:25
memberJudah Himango17-Apr-09 7:25 
GeneralSolution Pin
Mark Nischalke21-Apr-09 13:20
memberMark Nischalke21-Apr-09 13:20 
GeneralMemory allocation woes Pin
Computafreak31-Mar-09 9:45
memberComputafreak31-Mar-09 9:45 
GeneralRe: Memory allocation woes Pin
leppie6-Apr-09 1:52
mvpleppie6-Apr-09 1:52 
GeneralRe: Memory allocation woes Pin
Phil J Pearson7-Apr-09 2:39
memberPhil J Pearson7-Apr-09 2:39 
GeneralRe: Memory allocation woes Pin
hopingToCode7-Apr-09 5:35
memberhopingToCode7-Apr-09 5:35 
GeneralRe: Memory allocation woes Pin
Computafreak7-Apr-09 6:23
memberComputafreak7-Apr-09 6:23 
GeneralRe: Memory allocation woes Pin
Gary R. Wheeler16-Apr-09 0:20
memberGary R. Wheeler16-Apr-09 0:20 
GeneralRe: Memory allocation woes Pin
Chris Losinger19-Apr-09 9:29
memberChris Losinger19-Apr-09 9:29 
GeneralRe: Memory allocation woes Pin
supercat928-May-09 8:54
membersupercat928-May-09 8:54 
GeneralRe: Memory allocation woes Pin
Gary R. Wheeler28-May-09 12:27
memberGary R. Wheeler28-May-09 12:27 
GeneralRe: Memory allocation woes Pin
supercat929-May-09 5:42
membersupercat929-May-09 5:42 
GeneralRe: Memory allocation woes Pin
Jörgen Sigvardsson28-Apr-09 6:50
memberJörgen Sigvardsson28-Apr-09 6:50 
GeneralRe: Memory allocation woes Pin
Computafreak28-Apr-09 7:02
memberComputafreak28-Apr-09 7:02 
RantSilverlight huh? Pin
Todd Smith31-Mar-09 7:19
memberTodd Smith31-Mar-09 7:19 
GeneralRe: Silverlight huh? Pin
dan neely31-Mar-09 8:22
memberdan neely31-Mar-09 8:22 
GeneralRe: Silverlight huh? Pin
Computafreak31-Mar-09 8:36
memberComputafreak31-Mar-09 8:36 
GeneralRe: Silverlight huh? Pin
Todd Smith31-Mar-09 8:58
memberTodd Smith31-Mar-09 8:58 
GeneralRe: Silverlight huh? Pin
Computafreak31-Mar-09 9:07
memberComputafreak31-Mar-09 9:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 2 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid