Have you seen this error when trying to use firebase.functions:
functions is not a function
This is due to a Firebase API change from their namespaced API to a modular API. Continue reading to find out how to resolve this issue.
Have you seen this error on Wercker:
You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"
If you are an occassional/hobby builder then a free account on Docker Hub is all you will need to resolve the issue. Read on for a step-by-step guide.
I held off upgrading my OS from Mojve to Catalina, and then I simply forgot to. Recenlty, I did the upgrade, and everything worked fine.
However, my Wi-Fi simply stopped working one day. No obvious reason why either. I tried sharing my phones data connection via USB and Bluetooth, but neither worked.
A quick search led me to the solution.
I added some basic content to the site index page tonight.
I don’t want to design the layout in isolation from the content. Real content allows me to do this piece by piece, and gives me some confidence in my approach.
It keeps me grounded to one of the reasons for doing this in the first place.
Read on and see how I added the basic content, and what I’m going to do in step 4.
It’s been a while since Step 1 but I’ve finally come back to have a little further exploration with Tailwind.
After Step 1, I had a very very basic site in place, so I decided it’s time to create a basic layout.
I’ve decided not to be very adventurous to start-out, and so I stick with the single column layout I currently have on the site, along with three main sections of content.
Pathfinder 0.6.2 is a minor release, with a fix that requires the filepath parameter to exist.
If the path does not exist an error is raised.
The first step in this process is to create a new Hugo theme.
hugo new theme tailwind-keyes
Tailwind + Hugo (the two logos)
I’ve seen Tailwind CSS mentioned more than once over the past couple of years, and these mentions have always been favourable.
My web design days are fading in the distance, so I thought it might be a good idea to attempt to create a Hugo template based on tailwind.
My usual way of modifying the behaviour of pendulum.now() when testing has been to mock it:
with mock.patch(
"pendulum.now", return_value=pendulum.parse("2020年01月01日 00:00:00")
):
...
However, I did something mad today, and delved into the docs and found a neater way:
with pendulum.test(pendulum.parse("2020年01月01日 00:00:00")):
.message on DocRaptorRequestException.
${VAR:-VALUE} to specify VALUE as the default value if $VAR is not set or is empty.
heroku run. Well colour me behind the times, but Heroku resolved this issue in May 2015.
site.posts had no content in them. A deprecation warning points the way towards the fix.
A couple of major issues were raised for the alpha release. The first was the lack of support for
empty body responses, and the second was incorrect tracking of changed_attributes for resources.
These are fixed in this release, and an FAQ has been added to the documentation.
self attribute for each resource that contains a URL to the resource. As self is a reserved word in Python, the question is how should python-intercom support it.
ResponsiveEmbedConverter to automatically convert specifc URLs into
the appropriate markup.
args library for very simple command line argument parsing in Python.
<span class="k">def</span> <span class="nf">extendMarkdown</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">md</span><span class="p">,</span> <span class="n">md_globals</span><span class="p">)</span><span class="p">:</span>
<span class="n">md</span><span class="o">.</span><span class="n">registerExtension</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span> <span class="o">=</span> <span class="n">PreTreeprocessor</span><span class="p">(</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span><span class="o">.</span><span class="n">md</span> <span class="o">=</span> <span class="n">md</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span><span class="o">.</span><span class="n">config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">getConfigs</span><span class="p">(</span><span class="p">)</span><span class="o"><</span><span class="o">/</span><span class="n">pre</span><span class="o">></span></code></pre></div>
<span class="k">def</span> <span class="nf">extendMarkdown</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">md</span><span class="p">,</span> <span class="n">md_globals</span><span class="p">)</span><span class="p">:</span>
<span class="n">md</span><span class="o">.</span><span class="n">registerExtension</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span> <span class="o">=</span> <span class="n">PreTreeprocessor</span><span class="p">(</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span><span class="o">.</span><span class="n">md</span> <span class="o">=</span> <span class="n">md</span>
<span class="bp">self</span><span class="o">.</span><span class="n">processor</span><span class="o">.</span><span class="n">config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">getConfigs</span><span class="p">(</span><span class="p">)</span>
</code></pre>
def disable_transaction_methods(): from django.test.testcases import disable_transaction_methods
<span class="k">for</span> <span class="n">db</span> <span class="ow">in</span> <span class="n">connections</span><span class="p">:</span>
<span class="n">transaction</span><span class="o">.</span><span class="n">enter_transaction_management</span><span class="p">(</span><span class="n">using</span><span class="o">=</span><span class="n">db</span><span class="p">)</span>
<span class="n">transaction</span><span class="o">.</span><span class="n">managed</span><span class="p">(</span><span class="bp">True</span><span class="p">,</span> <span class="n">using</span><span class="o">=</span><span class="n">db</span><span class="p">)</span>
<span class="n">disable_transaction_methods</span><span class="p">(</span><span class="p">)</span>
def restore_transaction_methods(): from django.test.testcases import restore_transaction_methods
<span class="n">restore_transaction_methods</span><span class="p">(</span><span class="p">)</span>
<span class="k">for</span> <span class="n">db</span> <span class="ow">in</span> <span class="n">connections</span><span class="p">:</span>
<span class="n">transaction</span><span class="o">.</span><span class="n">rollback</span><span class="p">(</span><span class="n">using</span><span class="o">=</span><span class="n">db</span><span class="p">)</span>
<span class="n">transaction</span><span class="o">.</span><span class="n">leave_transaction_management</span><span class="p">(</span><span class="n">using</span><span class="o">=</span><span class="n">db</span><span class="p">)</span><span class="o"><</span><span class="o">/</span><span class="n">pre</span><span class="o">></span></code></pre></div>
from unittest import TestCase
class Test(TestCase):
<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">class_setup</span><span class="p">(</span><span class="bp">cls</span><span class="p">)</span><span class="p">:</span>
<span class="n">disable_transaction_methods</span><span class="p">(</span><span class="p">)</span>
<span class="c1"># ... import test fixtures</span>
<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">class_teardown</span><span class="p">(</span><span class="bp">cls</span><span class="p">)</span><span class="p">:</span>
<span class="n">restore_transaction_methods</span><span class="p">(</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">test_data_attributes</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="p">:</span>
<span class="c1"># ...</span>
<span class="k">def</span> <span class="nf">test_class_properties</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="p">:</span>
<span class="c1"># ...</span></code></pre></div>
from intercom import User user = User.find(email='somebody@example.com')
docraptor = DocRaptor() resp = docraptor.create({ 'document_content': '<p>python-docraptor Test</p>', 'test': True }) # PDF data is now available in resp.content
body { ... }
# only search top 2 levels of the directory tree paths = pathfinder.pathfind(".", depth=2)
Share this URL: https://xyz.showoff.io/
.xls file to .csv.
find_unbound_port returns a (pseudo-)random unbound port on localhost.
vserver id and the maximum source id from a Cherokee configuration file.
__getattr__ support.
if [ $# -ne 1 ]; then
PATHDIR=</span><span class="nb">pwd</span><span class="sb">
else
PATHDIR=1ドル
fi
/usr/bin/osascript > /dev/null <<-EOF activate application "Terminal" tell application "System Events" keystroke "t" using {command down} end tell tell application "Terminal" repeat with win in windows try if get frontmost of win is true then do script "cd $PATHDIR; clear" in (selected tab of win) end if end try end repeat end tell EOF
# get the directory this script was launched from
bindir=</span>dirname <span class="nv">0ドル</span><span class="sb">
# open TextMate $bindir/termexec "cd $PATHDIR" $bindir/termexec "mate ."
$bindir/newtab $PATHDIR # for svn, git, etc.
# start Apache $bindir/newtab $PATHDIR $bindir/termexec "httpd -k restart -f $PATHDIR/dev_conf/localhost.conf"
# start PostgreSQL $bindir/newtab $PATHDIR # for postgres $bindir/termexec "$PATHDIR/bin/postgresql start"
# open Firefox open $FIREFOX –args $APP_URL
export FIREFOX APP_URL
bindir=</span>dirname <span class="nv">0ドル</span><span class="sb">
$bindir/devapps "/Users/john/Workspace/demo/jobs"