Garbage Burrito! - Latest Forum Posts http://garbageburrito.com/forum en-us RE: Java Generics - ihgef <p>So beautiful sharing!Thank you very much.</p> <p><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> <br /><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> <br /><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> </p> Mon, 18 Jan 2010 05:45:09 -0600 http://garbageburrito.com/forum/message/36741 /forum/message/36741 RE: Stupid Simple, Yet Effective - userxie <p>Interesting Article. Hoping that you will continue posting an article having a useful information. Thanks a lot!</p> <p><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> <br /><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> <br /><a href="http://www.airmax-shox.com" rel="nofollow">web link</a> </p> Mon, 18 Jan 2010 05:41:59 -0600 http://garbageburrito.com/forum/message/36731 /forum/message/36731 RE: Stupid Simple, Yet Effective - zhujunjie <p>good...<a href="http://www.mywalkshoes.com" rel="nofollow">web link</a></p> Thu, 05 Nov 2009 00:37:04 -0600 http://garbageburrito.com/forum/message/30421 /forum/message/30421 RE: Java Generics - zhujunjie <p>i just know a litte about this <a href="http://www.mywalkshoes.com" rel="nofollow">web link</a></p> Thu, 05 Nov 2009 00:24:48 -0600 http://garbageburrito.com/forum/message/30411 /forum/message/30411 Air Jordan Shoes - such a huge impact on fans - zhujunjie <p>为了理解为什么乔丹鞋 <a href="http://www.mywalkshoes.com" rel="nofollow">web link</a> <br />有如此巨大的影响对球迷,你必须先了解一些关于迈克尔乔丹。 <br />作为得分后卫,乔丹是不可战胜的。在1990-91年度赛季,乔丹帮助公牛队在完成第一部-这已不是过去16年发生的。在东部决赛,底特律活塞队正在等待他们。届时,每个人都知道可以做什么约旦。所以,他们开始给他的广泛关注。他们不得不双重和三重他的团队试图阻止他得分。 <br />幸运的是,乔丹很聪明足以改变策略,采取通过。公牛队继续比赛的胜利。 <br />约旦是众所周知的,他得分能力。他的速度和伟大的跳跃能力。他参加了众多的扣篮时,他更年轻的扣篮比赛。刚开始,他只作为第一个赢得了亚军。但即便如此,球迷们为他生根。他最大的扣篮壮举来到了以罚球线一次性窗体。他从一个法庭结束他的运行。随着一些重大进展,他涵盖了法院的长度,他将在罚球线了。球迷会再看看他对篮子,每个人的浮动会疯狂欢呼时,球直入篮了。这是一项了不起约旦的跳跃能力明显。 <br />这使他赢得了乔丹的声誉。大家都称他为乔丹 <a href="http://www.mywalkshoes.com" rel="nofollow">web link</a> <br />,因为他可以在空气中飘着字面当他的扣篮表演。在竞争性的游戏,他的竞争对手难以停止,因为他的运动能力,他的伟大。 <br />约旦接着开始他的篮球鞋自己的品牌-空气乔丹鞋。在许多不同的颜色和设计,这些是鞋。这是目前销售的耐克,在体育产业的主要品牌。 <br />世界上很多球迷开始穿在篮球比赛的乔丹鞋。由于大量的研究已经进入了鞋子,价格是昂贵的鞋时,开始进入市场。但是,在鞋和改进技术的广泛采用,价格已经降到近年来很多。今天,你可以购买一对的复古超过1 100美元,不到飞人乔丹篮<a href="http://www.mywalkshoes.com" rel="nofollow">web link</a> </p> Thu, 05 Nov 2009 00:21:37 -0600 http://garbageburrito.com/forum/message/30401 /forum/message/30401 Handy Bit of Code: HtmlSpider =) - rheaghen <p>I just wrote the smallest, coolest piece of code to ever pass through my fingers.</p> <p>I call it HtmlSpider... here it is</p> <p><div><code> var HtmlSpider=function(processor){ <br />&nbsp;&nbsp;&nbsp;this._processor = processor <br />}; <br />HtmlSpider.prototype._processor = null <br />&nbsp;&nbsp;&nbsp;// your behavior <br />HtmlSpider.prototype.getResponse = function(node){ <br />&nbsp;&nbsp;&nbsp;// talks back to generic_spider <br />&nbsp;&nbsp;&nbsp;var result; <br />&nbsp;&nbsp;&nbsp;if(this._processor){ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result = this._processor(node); <br />&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;return result ? result : ""; <br />}; <br />HtmlSpider.prototype.crawl = function(node){ <br />&nbsp;&nbsp;&nbsp;if(!node || node.nodeType !== 1){ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return; <br />&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;if(node.hasChildNodes){ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0;i&lt;node.childNodes.length;i+=1){ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.crawl(node.childNodes[i]); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;eval(this.getResponse(node)); <br />};</code></div> </p> <p><br><br>useage example:</p> <p><div><code> <br />//create a spider object and pass in the function that gives this spider purpose. <br />var spider = new HtmlSpider(function(node){ <br />&nbsp;&nbsp;&nbsp;if( (node.className == "foo")) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;widget.fooNode = node; <br />&nbsp;&nbsp;&nbsp;} <br />}); <br />spider.crawl(topLevelNode); <br /></code></div></p> <p>whats so damn cool about this is that its <br />1) totally liner, <br />2) no required dom lookups, which can be expensive in <i>certain browsers</i> <br />3) its super lightweight and fast! <br />4) you can control the spider via response eval's. (like stop when you find this thingamabob);</p> <p>you can recursivly run through any branch of your dom with the finest granularity possible, using the most efficient method of traversing said structure. great for widget-ing DHTML controls!</p> <p>I hope someone finds this useful =)</p> Tue, 20 Jan 2009 22:51:38 -0600 http://garbageburrito.com/forum/message/4373 /forum/message/4373 Nothing can stop us now - Jesse <p>Comet :: our pseudo-production exhibit for design & development outfitters, has deployed --- <a href="http://comet.gravityway.com" rel="nofollow">web link</a>.</p> Sat, 29 Sep 2007 04:24:53 -0500 http://garbageburrito.com/forum/message/851 /forum/message/851 RE: Java Generics - Jesse <p>Oh you are a blessed one, Ben, a blessed one.</p> Sun, 23 Sep 2007 02:12:57 -0500 http://garbageburrito.com/forum/message/848 /forum/message/848 RE: JavaScripting with PDF's? - Jesse <p>Oh, those. yeah, they are ugly. I was only thinking creatively. Sorry.</p> <p>But damn are those ugly! </p> <p>I use linux, and just save it to desktop, so I don't have to mess with that crap.</p> <p>Thanks.</p> Sat, 22 Sep 2007 18:50:42 -0500 http://garbageburrito.com/forum/message/846 /forum/message/846 RE: JavaScripting with PDF's? - rheaghen <p>I'm speaking strictly in the context of Javascript and PDF's; not about HTML/CSS in any way. </p> <p>An Adobe Acrobat PDF document embedded in an HTML page has toolbars. I'm simply looking for a way to control this PDF from the document in which it is embedded.</p> Fri, 21 Sep 2007 11:11:38 -0500 http://garbageburrito.com/forum/message/844 /forum/message/844 RE: JavaScripting with PDF's? - Jesse <p>I'm not on par with you guys, but I would think first of z-index divs. The hidden pdf at 0 and the nominal view at 1. Have I come close here?-- as I have never heard of a pdf toolbar, tho I've employed plenty of z-indices: <a href="http://listenlight.net/05/" rel="nofollow">web link</a> (tho ~/contents (also) breaks IE).</p> Mon, 10 Sep 2007 05:43:19 -0500 http://garbageburrito.com/forum/message/821 /forum/message/821 RE: JavaScripting with PDF's? - rheaghen <p>Ok... update on the controlling PDF's with javascript. Ok, first the bad news (be brave, read on I say!), I still have no clue if using HTML javascript (silly clarification because adobe calls internal PDF scripting javascript too, how confusing) even works against embedded PDF documents. The good news is that someone at adobe realized there was more potential in using flash as the new transport for vector graphics, and other various forms of media. Behold Macromedia FlashPaper! (nice example <a href="http://help.godaddy.com/article.php?article_id=1370" rel="nofollow">web link</a>) </p> <p>the first thing I noticed about flash paper it that unlike PDF's it loaded REALLY fast. No silly nonsense like loading a parallel application that kind-of annoying. nothing like Acrobat reader to stifle the momentum that is your productivity with the distraction of loading this other application. I especially enjoy the updating process that acrobat frequently prompts me with... Oh Joy! more unnecessary time consumption! if I'm lucky, I'll get distracted for a hour from what I was really trying to accomplish. Ok. Sorry. I'll stop ranting now. </p> <p>anyhow, FlashPaper loads Really fast and looked beautiful! and because it's a standard SWF file, action script should certainly be an available tool here! Ooo Ooo and I don't have to worry about my customers not having acrobat! yay! dare I say, they could even access my document from something other than windows, EASILY!!!</p> <p>ps, checkout the svg alternative! <br /><a href="http://developer.mozilla.org/presentations/eich-ajax-experience-2007/photos.svg" rel="nofollow">web link</a></p> Wed, 05 Sep 2007 23:33:22 -0500 http://garbageburrito.com/forum/message/812 /forum/message/812 RE: Java Generics - Ben Kittrell <p>Ooops, I guess I don't have my own forum on my RSS Feed Reader anymore. Missed this one completely.</p> <p>I agree, generics are cool. I don't know how many times I've had to call an undocumented service that returns a collection, and had no idea what type was in the collection.</p> <p>The foreach is a nice touch too. That's something I always missed from Perl.</p> <p>Unfortunately we're still on Websphere 5.1 here, which means Java 1.4. They're making a push to get away from IBM, so it's easier to keep up with the times, but I'm sure they'll get tired of extending my contract by then.</p> Fri, 22 Jun 2007 07:55:02 -0500 http://garbageburrito.com/forum/message/713 /forum/message/713 Java Generics - rheaghen <p>Ahhh... Generics, they make me smile!</p> <p>heres a nice generic Collection Cleanup method that should totally be available in the java.util.Collections class <br /><code> <br />public static &lt;U&gt; void <br />&nbsp;&nbsp;&nbsp;condense(java.util.Collection&lt;U&gt; collection) { <br />&nbsp;&nbsp;&nbsp;Object[] arr_o = collection.toArray(); <br />&nbsp;&nbsp;&nbsp;collection.clear(); <br />&nbsp;&nbsp;&nbsp;for(Object o:arr_o) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(o!=null) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collection.add((U)o); <br />&nbsp;&nbsp;&nbsp; <br />} <br /></code></p> Thu, 14 Jun 2007 16:58:31 -0500 http://garbageburrito.com/forum/message/698 /forum/message/698 RE: JavaScripting with PDF's? - rheaghen <p>I still have not found a solution to this problem. I contacted Adobe Technical Support, and said I'd pay for the solution. the answer I got was, "Yes, it can be done, but only through javascript". The not-so-wonderful thing is that Adobe also calls it's internal ECMA scripting "JAVASCRIPT" so I can not even be sure of the context in which the tech support guy was talking about. Chris, the Mad Scientist of the it department, hinted that the actual executable binary that controls the plugin may have some useful hints if you REALLY wanna hack into it. but~~~~ I have not gone down that path just yet. sorry all you bleary eyed googlers looking for a solution.</p> Wed, 07 Mar 2007 14:22:50 -0600 http://garbageburrito.com/forum/message/587 /forum/message/587 RE: Stupid Simple, Yet Effective - Ben Kittrell <p>Nice. I've always found it to be a PITA to use the standard JavaScript methods.</p> Tue, 06 Feb 2007 22:01:57 -0600 http://garbageburrito.com/forum/message/515 /forum/message/515 Stupid Simple, Yet Effective - rheaghen <p>Ever wanted to make an external popup modal? (or is it non-modal?) check out this stupid simple way to make it happen</p> <p>Popup Code:</p> <p>&lt;html&gt; <br />&nbsp;&nbsp;&nbsp;&lt;body onblur="window.focus();" id="never_loses_focus"&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="content">Lorem ipsum dolor sit amet.&lt;/div&gt; <br />&nbsp;&nbsp;&nbsp;&lt;/body&gt; <br />&lt;/html&gt;</p> Tue, 06 Feb 2007 15:56:26 -0600 http://garbageburrito.com/forum/message/514 /forum/message/514 RE: JavaScripting with PDF's? - Ben Kittrell <p>Ryan, did you ever figure this out, cause a lot of people have been searching for it.</p> Tue, 07 Nov 2006 11:06:41 -0600 http://garbageburrito.com/forum/message/417 /forum/message/417 RE: Retro Coding Tricks - Ben Kittrell <p>It's amazing what people will come up with when there toolset doesn't always do the job. This reminds me of the Getting Real philosophy. If you give someone just enough to accomplish their task, they'll find imaginative ways to do it.</p> Wed, 30 Aug 2006 13:00:04 -0500 http://garbageburrito.com/forum/message/105 /forum/message/105 Retro Coding Tricks - rheaghen <p>I was talking with my dad last night, when Dater formatting came up. He show me a cool little math trick to re-arrange a date</p> <p>assume you have a date string 20060506</p> <p>and you want to make it 05062006</p> <p>not too challanging with todays tools. but how'd those guys get 'er done in the old days?</p> <p>20060506 * 10000.0001 == 200605062006.0506 <br />do some truncations and Presto! you've got re-organized digits!</p> <p>thx for the neet ole' trick Pops! </p> Mon, 28 Aug 2006 12:09:44 -0500 http://garbageburrito.com/forum/message/104 /forum/message/104