Garbage Burrito - Latest Forum Posts http://garbageburrito.com/forum en-us Nothing can stop us now - Jesse <p>Comet :: our pseudo-production exhibit for design & development outfitters, has deployed --- <a href="http://comet.gravityway.com">http://comet.gravityway.com</a>.</p> Sat, 29 Sep 2007 04:24:53 -0500 http://garbageburrito.com/forum/message/851 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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/">http://listenlight.net/05/</a> (tho ~/contents (also) breaks IE).</p> Mon, 10 Sep 2007 05:43:19 -0500 http://garbageburrito.com/forum/message/821 http://garbageburrito.com/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">http://help.godaddy.com/article.php?article_id=1370</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">http://developer.mozilla.org/presentations/eich-ajax-experience-2007/photos.svg</a></p> Wed, 05 Sep 2007 23:33:22 -0500 http://garbageburrito.com/forum/message/812 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/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 http://garbageburrito.com/forum/message/104 RE: Coding Tips! - Ben Kittrell <p>YES! I win! I knew I could wear you down.</p> Tue, 22 Aug 2006 07:07:07 -0500 http://garbageburrito.com/forum/message/102 http://garbageburrito.com/forum/message/102 RE: JavaScripting with PDF's? - rheaghen <p>chirrrp...chirrrp... well... maybe someone will find it. it's on tha enernet.</p> Mon, 21 Aug 2006 20:49:19 -0500 http://garbageburrito.com/forum/message/101 http://garbageburrito.com/forum/message/101 RE: Coding Tips! - rheaghen <p>lol... Ok ben... you win... Ruby's cool</p> Mon, 21 Aug 2006 20:47:53 -0500 http://garbageburrito.com/forum/message/100 http://garbageburrito.com/forum/message/100 RE: JavaScripting with PDF's? - Ben Kittrell <p>You do realize that no one else is here, right?</p> <p>Sorry dude, I've got no clue.</p> Mon, 21 Aug 2006 13:09:15 -0500 http://garbageburrito.com/forum/message/99 http://garbageburrito.com/forum/message/99 RE: Coding Tips! - Ben Kittrell <p>You're right Ruby has Nil Pointers ;) Remember, Ruby is just as OO has Java. </p> <p>You're trying to make things easier in Java? Just give up now. lol Oh crap, I hope Dave doesn't read this, I'd really be asking for it then.</p> <p>Oh and yes, I will bring up Ruby at every opportunity!</p> Mon, 21 Aug 2006 13:06:54 -0500 http://garbageburrito.com/forum/message/98 http://garbageburrito.com/forum/message/98 JavaScripting with PDF's? - rheaghen <p>JavaScripting with PDF's? Hide PDF toolbars in the browser? any one holding back on me here?</p> <p>this is the closest I've come to not failing at Hiding PDF toolbars in a Browser. <br /><br><br> <br />&lt;OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=555 HEIGHT=450&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;PARAM NAME="SRC" VALUE="<b>MyPdf.pdf#toolbar=false</b>"&gt; <br />&nbsp;&nbsp;&nbsp;<b>&lt;param name="setShowToolbar" value="0"/&gt;</b> <br />&nbsp;&nbsp;&nbsp;&lt;EMBED SRC="MyPdf.pdf" HEIGHT=450 WIDTH=555&gt; <br />&nbsp;&nbsp;&nbsp;&lt;NOEMBED&gt; Your browser does not support embedded PDF files. &lt;/NOEMBED&gt; &lt;/EMBED&gt; <br />&lt;/OBJECT&gt;</p> <p>this does not work.</p> <p>I just spent 2.5 hours on the phone with Acrobat's Development Tech support . they say there is a way to hide the toolbars through Javascript, but they do not support this type of thing, they will not help me, and they will not tell me who can help.</p> <p>I've googled every phase combination I can think of, I've searched be the PDF classid shown in the object tag above. so I am hoping one of you can show me up. </p> <p>don't be shy now. </p> <p>thanx - Ryan</p> Mon, 21 Aug 2006 12:54:08 -0500 http://garbageburrito.com/forum/message/97 http://garbageburrito.com/forum/message/97