User snipper - SnippetGood most recent 30 from http://snippetgood.com 2010-07-29T23:50:09Z http://snippetgood.com/feeds/user/2 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://snippetgood.com/questions/79/what-doctype-is-best-for-standards-and-cross-browser-compliance/160#160 Answer by Snipper for What doctype is best for standards and cross browser compliance? Snipper 2010-02-19T18:32:51Z 2010-02-19T18:32:51Z <p>I've expanded on doctypes here: <a href="http://danvogler.com/articles/doctypes-w3c-validator.html" rel="nofollow">http://danvogler.com/articles/doctypes-w3c-validator.html</a></p> http://snippetgood.com/questions/79/what-doctype-is-best-for-standards-and-cross-browser-compliance What doctype is best for standards and cross browser compliance? Snipper 2009-10-11T21:11:03Z 2010-02-19T18:32:51Z <p>Hello, I know there are a few different doctypes out there, but which is a good one to use and benefits associated with it?</p> <p>Thank you, Ronson</p> http://snippetgood.com/questions/159/apache-and-iis-compression Apache and IIS Compression Snipper 2010-02-01T01:58:06Z 2010-02-01T01:58:06Z <p>If you're wondering how you can do compression using apache and IIS 6 and 7 check out the this article</p> <p><a href="http://www.danvogler.com/articles/apache-iis-compression.html" rel="nofollow">www.danvogler.com</a></p> http://snippetgood.com/questions/158/what-is-the-shoemoney-system What is The ShoeMoney System? Snipper 2010-01-10T17:03:19Z 2010-01-10T17:03:19Z <p>The ShoeMoney System is one of our trusted sponsors. I've used the system personally, and many other techniques Jeremy Schoemaker has there's no doubt that this is the quickest way to advertise your site.</p> <p><a href="http://www.shoemoneysystem.com/its-coming/?c=dvogler1" rel="nofollow">http://www.shoemoneysystem.com/its-coming/?c=dvogler1</a></p> <p>Signup and you'll get four more videos. Watch them! It's a great intro to what internet marketing has to offer. If you think this offer is cheesy, it's not! </p> http://snippetgood.com/questions/120/b-or-strong <b> or <strong>? Snipper 2009-10-23T03:15:54Z 2009-11-11T04:39:16Z <p>Let's talk html. Why am I told to use the <code>&lt;strong&gt;</code> tag instead of <code>&lt;b&gt;</code>? Was <code>&lt;b&gt;</code> too confusing?</p> http://snippetgood.com/questions/142/how-can-i-detect-which-browser-a-visitor-is-using How can I detect which browser a visitor is using? Snipper 2009-10-31T15:45:38Z 2009-10-31T15:45:38Z <p>I want to show different content or give display a message to visitors using a specific browser.</p> <p>Using javascript (or maybe jquery) or .NET can I detect the browser?</p> http://snippetgood.com/questions/141/how-do-i-find-a-good-web-host-for-my-snippets How do I find a good web host for my snippets? Snipper 2009-10-29T18:23:44Z 2009-10-29T18:23:44Z <p>Alright, I'm not asking for a snippet, but this is a <strong><em>very</em></strong> important question.</p> <p><strong>How do I find and choose the right host for my website?</strong></p> <p>I want a host that has reliable systems and good customer service.</p> http://snippetgood.com/questions/140/a-calendar-for-your-website A calendar for your website? Snipper 2009-10-29T17:54:27Z 2009-10-29T17:54:27Z <p>I've got some events I woud like to organize in a calendar, and I don't want to spend a lot of time with complicated systems. I found an calendar made in tables. </p> <pre><code>&lt;TABLE BORDER=3 CELLSPACING=3 CELLPADDING=3&gt; &lt;TR&gt; &lt;TD COLSPAN="7" ALIGN=center&gt;&lt;B&gt;December 2001&lt;/B&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD COLSPAN="7" ALIGN=center&gt;&lt;I&gt;Another year comes to an end&lt;/I&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;Sun&lt;/TD&gt; &lt;TD ALIGN=center&gt;Mon&lt;/TD&gt; &lt;TD ALIGN=center&gt;Tue&lt;/TD&gt; &lt;TD ALIGN=center&gt;Wed&lt;/TD&gt; &lt;TD ALIGN=center&gt;Thu&lt;/TD&gt; &lt;TD ALIGN=center&gt;Fri&lt;/TD&gt; &lt;TD ALIGN=center&gt;Sat&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;1&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;2&lt;/TD&gt; &lt;TD ALIGN=center&gt;3&lt;/TD&gt; &lt;TD ALIGN=center&gt;4&lt;/TD&gt; &lt;TD ALIGN=center&gt;5&lt;/TD&gt; &lt;TD ALIGN=center&gt;6&lt;/TD&gt; &lt;TD ALIGN=center&gt;7&lt;/TD&gt; &lt;TD ALIGN=center&gt;8&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;9&lt;/TD&gt; &lt;TD ALIGN=center&gt;10&lt;/TD&gt; &lt;TD ALIGN=center&gt;11&lt;/TD&gt; &lt;TD ALIGN=center&gt;12&lt;/TD&gt; &lt;TD ALIGN=center&gt;13&lt;/TD&gt; &lt;TD ALIGN=center&gt;14&lt;/TD&gt; &lt;TD ALIGN=center&gt;15&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;16&lt;/TD&gt; &lt;TD ALIGN=center&gt;17&lt;/TD&gt; &lt;TD ALIGN=center&gt;18&lt;/TD&gt; &lt;TD ALIGN=center&gt;19&lt;/TD&gt; &lt;TD ALIGN=center&gt;20&lt;/TD&gt; &lt;TD ALIGN=center&gt;21&lt;/TD&gt; &lt;TD ALIGN=center&gt;22&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;23&lt;/TD&gt; &lt;TD ALIGN=center&gt;24&lt;/TD&gt; &lt;TD ALIGN=center&gt;25&lt;/TD&gt; &lt;TD ALIGN=center&gt;26&lt;/TD&gt; &lt;TD ALIGN=center&gt;27&lt;/TD&gt; &lt;TD ALIGN=center&gt;28&lt;/TD&gt; &lt;TD ALIGN=center&gt;29&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD ALIGN=center&gt;30&lt;/TD&gt; &lt;TD ALIGN=center&gt;31&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;TD ALIGN=center&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; </code></pre> <p>I would much prefer an asp or php coded app. Is there anything I can use?</p> http://snippetgood.com/questions/50/how-can-i-make-a-basic-jquery-rotator/138#138 Answer by Snipper for How can I make a basic jquery rotator? Snipper 2009-10-29T17:41:24Z 2009-10-29T17:41:24Z <p>I'm also using a similar script you can view at audinow.com. View the arouce to grab the plugin. I'll edit if I find the source for "Simple Gallery".</p> http://snippetgood.com/questions/129/how-can-i-display-formatted-rss-data-in-a-div/135#135 Answer by Snipper for How can I display formatted rss data in a DIV Snipper 2009-10-28T02:59:55Z 2009-10-28T02:59:55Z <p>If you have access to an xml you can use something like this:</p> <pre><code> $(function() { $.ajax({ type: "GET", url: "myxml.xml", dataType: "xml", success: function(xml) { $(xml).find('infoContainer').each(function() { var day = $(this).find('nodeName').text(); $("#xml-container").append("&lt;div class='day'&gt;" + day + "&lt;/div&gt;"); } } }); } }); </code></pre> <p>more information: <a href="http://think2loud.com/reading-xml-with-jquery/" rel="nofollow">http://think2loud.com/reading-xml-with-jquery/</a></p> http://snippetgood.com/questions/119/wrap-text-around-image-with-html-and-css Wrap text around image with html and css. Snipper 2009-10-23T03:11:01Z 2009-10-23T03:16:29Z <p>How can I wrap text around an image? </p> <p>The image can be in the top left or right. </p> <p>I'm thinking of using a graphical image for a drop case letter, or a profile picture with text wrapping around it.</p> http://snippetgood.com/questions/80/how-can-i-use-meta-tags-in-my-website/82#82 Answer by Snipper for How can I use meta tags in my website? Snipper 2009-10-11T21:53:42Z 2009-10-11T21:53:42Z <p>Meta tags aren't a cure-all for your seo needs, but they do influence robots that crawl your site.</p> <pre><code>&lt;head&gt; &lt;meta name="keywords" content="keyword1,keyword2,keyword3" /&gt; &lt;meta name="description" content="Here is a description of the webpage." /&gt; &lt;/head&gt; </code></pre> <p>I use a nice a tool - www.spacky.com. It shows you how many times a keyword or phrase is searched, but I like the related results feature.</p> http://snippetgood.com/questions/77/a-good-image-tag-for-better-search-results/78#78 Answer by Snipper for A good image tag for better search results Snipper 2009-10-11T21:06:17Z 2009-10-11T21:06:17Z <p>Here's a good image tag that will get you better search results if you're not using it already. The alternate text and title tags help bots recognize the content of the image. Also remember that larger images in size and quality out rank the smaller guys.</p> <pre><code>&lt;img src="" alt="" title="" /&gt; </code></pre> http://snippetgood.com/questions/65/current-year-copyright-line-in-php/67#67 Answer by Snipper for Current Year Copyright Line in PHP Snipper 2009-10-11T01:55:59Z 2009-10-11T02:05:42Z <p>PHP - Display Currenty Year:</p> <pre><code>&lt;?php echo date("Y") ?&gt; </code></pre> <p>Many a folk like to use this for copyrite displays.</p> http://snippetgood.com/questions/66/current-year-copyright-line-in-asp/68#68 Answer by Snipper for Current Year Copyright Line in ASP Snipper 2009-10-11T02:05:15Z 2009-10-11T02:05:15Z <p>ASP - Display Current Year:</p> <pre><code>&lt;%=DateTime.Now.Year%&gt; </code></pre> <p>Many people use this for copyrite.</p> http://snippetgood.com/questions/60/excel-sheet-to-html-on-website/62#62 Answer by Snipper for Excel Sheet to HTML on Website? Snipper 2009-10-10T18:45:40Z 2009-10-10T18:45:40Z <p>I wouldn't normally recommend software for a task that can be done, I'm sure, in many other ways, but in this case I used the trial version of software for a an excel doc I needed online. </p> <p>There's a utility called <a href="http://www.mvps.org/dmcritchie/excel/xl2html.htm" rel="nofollow">XL2HTML</a>. This was nice for me because it installs as a plugin for excel. I installed it on office 2007 without any issues. One thing I really liked was the search function it created in the .htm export.</p> http://snippetgood.com/questions/48/ninjafy-javascript-halloween-pirates-or-ghosts-or-ninjas/49#49 Answer by Snipper for Ninjafy Javascript Halloween Pirates or Ghosts or Ninjas Snipper 2009-10-08T22:45:21Z 2009-10-08T22:45:21Z <p>A wise friend of ours suggests you ninjafy your site courtesy of <a href="http://ninjafy.com/" rel="nofollow">http://ninjafy.com/</a></p> <pre><code>&lt;a href="#" onclick="ninjafy_add();return false;"&gt; &lt;img src="http://ninjafy.com/assets/ninjafy.gif" width="52" height="15" border="0" alt="ninjafy!" /&gt;&lt;/a&gt; &lt;script type="text/javascript" src="http://ninjafy.com/js/ninjafy.js"&gt;&lt;/script&gt; </code></pre> <p>You could probably adapt the script therein to suit your theme needs.</p> http://snippetgood.com/questions/31/using-windows-built-in-ftp-application-with-batch-files/32#32 Answer by Snipper for Using Windows built in FTP application with batch files. Snipper 2009-10-02T23:31:53Z 2009-10-02T23:31:53Z <p>Hi there, yes, windows has a built-in FTP app. I would use it to move small files, but nothing intensive.</p> <p>Here you can schedule a task to run the batch file. It refers to the .txt that controls the FTP session:</p> <p>ftpsite.bat</p> <pre><code>ftp -s:ftpsite.txt ftp.domain.com </code></pre> <p>ftpjobrun.txt</p> <pre><code>yourUserName yourPassword bin cd /files put file.zip bye </code></pre> http://snippetgood.com/questions/13/how-do-i-log-in-with-an-openid/14#14 Answer by Snipper for How do I log in with an OpenID? Snipper 2009-10-01T03:01:25Z 2009-10-02T14:30:27Z <p>You do not need to register if you just want to ask or answer a question. You do need to register if you want to earn reputation which lets you vote, retag, and edit.</p> <p>To register for SnippetGood.com, click the login link at the top of the page. Rather than storing users and passwords ourselves, SnippetGood.com integrates with OpenID accounts. Basically this is a new "login once, go to any site" technology. If you already have one (it will look like a web address starting with http:// your-username.your-provider.com /), then enter it into the text box on the login page (including the http://) and click the Login button. If you don't have one (or think you don't have one), keep reading...</p> <p>Any website can become an OpenID provider. Many, like Google, Facebook, and Yahoo! already are. If you don't have any of those, you can get a new OpenID by following this procedure:</p> <ul> <li> Go to <a href="https://www.myopenid.com/signup" rel="nofollow">https://www.myopenid.com/signup</a></li><li> Make up a user name Put in a password</li><li> Enter any email address you want to use</li><li> Enter the text in the captcha</li><li> Check the I Agree to... checkbox</li><li> Click Sign Up</li> </ul> <p>That should give you an OpenID and it will look like a website address (<a href="http://...myopenid.com" rel="nofollow">http://...myopenid.com</a>). You can use that on any OpenID site including SnippetGood.com.</p> <p><strong>Sources:</strong><br /> <em><a href="http://moms4mom.com/questions/6/how-do-i-log-in-with-an-openid" rel="nofollow">http://moms4mom.com/questions/6/how-do-i-log-in-with-an-openid</a></em> <br /> <em><a href="http://stopthesearch.com/questions/4/how-do-i-log-in-with-an-openid" rel="nofollow">http://stopthesearch.com/questions/4/how-do-i-log-in-with-an-openid</a></em></p> http://snippetgood.com/questions/16/can-i-use-net-to-return-an-ip/17#17 Answer by Snipper for Can I use .NET to return an IP? Snipper 2009-10-01T04:50:51Z 2009-10-01T04:50:51Z <p>This will return your IP.</p> <pre><code>Public Function GetExternalIP(ByVal Provider As String) As String Dim WebReq As HttpWebRequest = HttpWebRequest.Create(Provider) Dim WebRes As HttpWebResponse = WebReq.GetResponse() Dim ResStream As System.IO.Stream = WebRes.GetResponseStream Dim ResStreamReader As New StreamReader(ResStream, Encoding.UTF8) Dim IP As String = ResStreamReader.ReadToEnd ResStream.Close() WebRes.Close() Return IP End Function </code></pre> http://snippetgood.com/questions/48/ninjafy-javascript-halloween-pirates-or-ghosts-or-ninjas/116#116 Comment by Snipper Snipper 2009-10-29T17:37:11Z 2009-10-29T17:37:11Z This is an awesome script to add a cool halloween touch. Easy to do, not 1990's annoying!