TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Developer only event at SXSW (code puzzle gets harder with more tweets)

50 pointsby nathanhabout 14 years ago

18 comments

redredraiderabout 14 years ago
<p><pre><code> $data = "http://hackerunderground.com/solution/blank; $ch = curl_init($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $base = curl_exec($ch); for($i=0;$i&#60;10000;$i++) { $data = "http://hackerunderground.com/solution/$i; $ch = curl_init($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if($response != $base) { echo $i; } } </code></pre> I like my solution best. Everyone should try it!
评论 #2289347 未加载
评论 #2289330 未加载
评论 #2289289 未加载
acgourleyabout 14 years ago
I'm also throwing a hacker only event.<p>It's called stay home and get shit done.
评论 #2288785 未加载
评论 #2289726 未加载
评论 #2289602 未加载
评论 #2288787 未加载
评论 #2289805 未加载
Klonoarabout 14 years ago
So just to summarize:<p>Elite 'hacker' group claims to hate marketing guru/bullshit tactics, then proceeds to ply the hell out of everyone to spread their concept in a viral Twitter hashtag manner.<p>Granted, I totally just did it because that puzzle was way too easy, but c'mon now.
评论 #2288701 未加载
cstuderabout 14 years ago
I wonder if having to manually launch the puzzles show() method is part of the puzzle itself or just a bug. (Checked with Chrome 9 and Firefox 3).
评论 #2288714 未加载
评论 #2289206 未加载
评论 #2288950 未加载
colinsidotiabout 14 years ago
The ways everyone solves the puzzle are much more interesting than the puzzle itself. I made a mysql table with one column set as the primary key and did an insert.<p>This reminds me of this awesome thread on Sitepoint (5 pages of different ways to output the numbers 0-9): <a href="http://www.sitepoint.com/forums/php-34/write-loop-php-prints-numbers-0-9-page-580793.html" rel="nofollow">http://www.sitepoint.com/forums/php-34/write-loop-php-prints...</a>
mickdarlingabout 14 years ago
Well now they are asking for Prime duplicates, and if they keep it going fo the next week, you could end up with some complex puzzles.
zdwabout 14 years ago
Not going to SXSW, but...<p><pre><code> tr ',' '\n' | sort -n | uniq -d</code></pre>
评论 #2288643 未加载
评论 #2289260 未加载
评论 #2289239 未加载
51Cardsabout 14 years ago
Text editor, break into lines, numeric sort, find the line where the count goes out of sync with the line number.
primodemusabout 14 years ago
C#: data.GroupBy(i =&#62; i).Where(g =&#62; g.Count() &#62; 1) .Select(g =&#62; g.Key) .ToList().ForEach(x =&#62; Console.WriteLine(x));
tjarrattabout 14 years ago
node.js + underscore.js<p>var numbers = [];<p>require("./underscore-min.js"); var dupe = _.reject(numbers, function(number) { return _.lastIndexOf(numbers, number) == _.indexOf(numbers, number); }); console.log(dupe);
krisrakabout 14 years ago
solved it with no code by copying and opening as csv, transpose paste, sort, scroll to match column number with number, check for mismatch, bingo!
janoulleabout 14 years ago
I'm learning Python (3) w/ MIT OCW and here's my solution (<a href="http://pastebin.com/EQevWQWC" rel="nofollow">http://pastebin.com/EQevWQWC</a>). def dupefinder(lister): '''Function to find first duplicate in a list; Variable to pass to this function should be of type "list" ''' listerdupe = sorted(lister) for index,item in enumerate(listerdupe): if item == listerdupe[index+1]: print('First duplicate number is {0}'.format(item)) return item
评论 #2289420 未加载
matlaberabout 14 years ago
Open Matlab --&#62; answer = mode(Copy --&#62; Paste)
annonabout 14 years ago
Open up web inspector.<p>var arr = (paste)<p>arr.sort()<p>for(var i = 0;i&#60;arr.length;i++){if(arr[i+1] == arr[i]){console.log(arr[i])}}
评论 #2289126 未加载
dotBenabout 14 years ago
Since they changed the puzzle to now require finding the prime duplicate number.<p>Is is each number delimited by a (random?) alphabetic letter? Is this to make parsing into Excel/an array harder?<p>Also, even the new 'harder' puzzle is easy to solve in Excel. Maybe that isn't a bad thing, however.
whalesaladabout 14 years ago
Solved the puzzle with a couple lines of Python ;) Unfortunately, I won't be attending SXSW this year. Boo. If someone can solve that puzzle, I'll teach you all the hacks I know.
ptarjanabout 14 years ago
What day is the event?
评论 #2289428 未加载
zackattackabout 14 years ago
the lemons of this string when you take out all of the spaces and align the words end to end and prefix it with the word win