snipt

Ctrl+h for KB shortcuts
#17600
https://snipt.net/embed/9f7d800650e68226cca1efad21e1b847/
https://snipt.net/raw/9f7d800650e68226cca1efad21e1b847/
9f7d800650e68226cca1efad21e1b847
java
Java
1
2014-04-11T13:41:32
True
False
/api/public/snipt/17600/
strage-java-behavious-unicode-error-in-comments
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1">// \u</span> </span></pre></div> </td></tr></table>
bug, comments, java, unicode
#16300

JavaScript

IE update on .change()

1
2
3
4
5
6
// the .change() event in IE doesn't fire until focus is removed from the element. Use the below to make it work like other browsers.
if ($.browser.msie) {
    $("#elements").click(function() {
        $(this).change();
    });
}
https://snipt.net/embed/8f2334a93d1a6f142b6b8695ab70419a/
https://snipt.net/raw/8f2334a93d1a6f142b6b8695ab70419a/
8f2334a93d1a6f142b6b8695ab70419a
js
JavaScript
6
2014-04-14T18:34:16
True
False
/api/public/snipt/16300/
ie-update-on-change
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1">// the .change() event in IE doesn&#39;t fire until focus is removed from the element. Use the below to make it work like other browsers.</span> </span><span id="L-2"><a name="L-2"></a><span class="k">if</span> <span class="p">(</span><span class="nx">$</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">msie</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="nx">$</span><span class="p">(</span><span class="s2">&quot;#elements&quot;</span><span class="p">).</span><span class="nx">click</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">change</span><span class="p">();</span> </span><span id="L-5"><a name="L-5"></a> <span class="p">});</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
bug, event, jquery, msie
#11358

Bash

Fix spamassassin 2010 bug

1
2
3
4
5
6
7
/usr/share/spamassassin/72_active.cf

header FH_DATE_PAST_20XX Date =~ /20[1-9][0-9]/ [if-unset: 2006]
->header FH_DATE_PAST_20XX Date =~ /20[2-9][0-9]/ [if-unset: 2006]

#good path to remember
/etc/mail/spamassassin
https://snipt.net/embed/575a5d63709da9c5787f048c113b7bfb/
https://snipt.net/raw/575a5d63709da9c5787f048c113b7bfb/
575a5d63709da9c5787f048c113b7bfb
bash
Bash
7
2014-04-17T06:17:50
True
False
/api/public/snipt/11358/
fix-spamassassin-2010-bug
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>/usr/share/spamassassin/72_active.cf </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>header FH_DATE_PAST_20XX <span class="nv">Date</span> <span class="o">=</span>~ /20<span class="o">[</span>1-9<span class="o">][</span>0-9<span class="o">]</span>/ <span class="o">[</span><span class="k">if</span>-unset: 2006<span class="o">]</span> </span><span id="L-4"><a name="L-4"></a>-&gt;header FH_DATE_PAST_20XX <span class="nv">Date</span> <span class="o">=</span>~ /20<span class="o">[</span>2-9<span class="o">][</span>0-9<span class="o">]</span>/ <span class="o">[</span><span class="k">if</span>-unset: 2006<span class="o">]</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a><span class="c">#good path to remember</span> </span><span id="L-7"><a name="L-7"></a>/etc/mail/spamassassin </span></pre></div> </td></tr></table>
2010, bug, fix, spamassassin
#6089

CSS

IE6~7 : button, input. Extra padding bug.

1
2
3
4
/* http://naradesign.net/wp/2009/05/13/825/ */
input, button {
	overflow: visible;
}
https://snipt.net/embed/10714348ee017f2aaea7a8db12e4506a/
https://snipt.net/raw/10714348ee017f2aaea7a8db12e4506a/
10714348ee017f2aaea7a8db12e4506a
css
CSS
4
2014-04-17T22:11:36
True
False
/api/public/snipt/6089/
ie67-button-input-extra-padding-bug
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c">/* http://naradesign.net/wp/2009/05/13/825/ */</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">input</span><span class="o">,</span> <span class="nt">button</span> <span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="k">overflow</span><span class="o">:</span> <span class="k">visible</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
bug, button, css, ie, input