TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

50 点作者 nathanh超过 14 年前

18 条评论

redredraider超过 14 年前
<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 未加载
acgourley超过 14 年前
I'm also throwing a hacker only event.<p>It's called stay home and get shit done.
评论 #2288785 未加载
评论 #2289726 未加载
评论 #2289602 未加载
评论 #2288787 未加载
评论 #2289805 未加载
Klonoar超过 14 年前
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 未加载
cstuder超过 14 年前
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 未加载
colinsidoti超过 14 年前
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>
mickdarling超过 14 年前
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.
zdw超过 14 年前
Not going to SXSW, but...<p><pre><code> tr ',' '\n' | sort -n | uniq -d</code></pre>
评论 #2288643 未加载
评论 #2289260 未加载
评论 #2289239 未加载
51Cards超过 14 年前
Text editor, break into lines, numeric sort, find the line where the count goes out of sync with the line number.
primodemus超过 14 年前
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));
tjarratt超过 14 年前
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);
krisrak超过 14 年前
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!
janoulle超过 14 年前
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 未加载
matlaber超过 14 年前
Open Matlab --&#62; answer = mode(Copy --&#62; Paste)
annon超过 14 年前
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 未加载
dotBen超过 14 年前
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.
whalesalad超过 14 年前
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.
ptarjan超过 14 年前
What day is the event?
评论 #2289428 未加载
zackattack超过 14 年前
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