Recent Pads

Total pad count: 662
created 9 days, 20 hours ago
distribution-of-rolling-2d6-and-multiplying

>>> for i in range(1,7):
...     for j in range(1,7):
...         print(i * j)
... 
1
2
3
... view all 74 lines

created 13 days, 12 hours ago
delete-uris-which-do-not-have-nodes

request.tm.begin()

uris = m.get_all_uris(request.dbsession)

for uri in uris:
    if uri.node and uri.node.children.count() <= 0:
        print("deleted node: {}".format(uri.node.id))
... view all 14 lines

created 16 days, 14 hours ago
remarkbox-pshell-modifying-all-nodes-who-have-a-uri

# begin the database transaction.
request.tm.begin()

# get all Uri objects.
uris = m.uri.get_all_uris(request.dbsession)

# interate over all Uri objects.
... view all 20 lines

created 75 days, 23 hours ago
2c1746b3-c611-412b-81bc-711a3965e271

<center>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://s3-us-west-1.amazonaws.com/clockwisepublic/clockwiseWaitTimes.min.js"></script>

<div style="display: inline-block; padding: 12px 20px 20px; margin-bottom: 0;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px;
  line-height: 20px; color: #ffffff; text-align: center; background-color:#2745c8;
... view all 40 lines

created 127 days, 12 hours ago
aldi-potatoes

Hello,

I'm a patron of ALDI and a local gardener. Yesterday I was at my local store in and noticed that there were many (about 30) sacks of organic Canadian grown potatoes which were sprouting. 

I asked the clerk if I could have a discount because I didn't plan to eat the potatoes but I planned to try and plant them. The clerk asked for his manager. 

His manager said she could not sell them to me and that she would throw them away.
... view all 23 lines

created 129 days, 12 hours ago
975f2819-8001-40d0-b413-531e583f4ed2

o https://brettterpstra.com//2019/02/21/your-security-and-privacy/ 

x https://brettterpstra.com//2013/02/09/quick-tip-jumping-to-the-finder-location-in-terminal/ 

x https://brettterpstra.com//2018/11/04/the-future-of-the-tablinks-safari-extension/ 

o https://brettterpstra.com//2019/02/04/brainstorming-how-i-start-a-project/ 
... view all 21 lines

created 147 days, 11 hours ago
923272e7-41ff-4804-8ef7-c55be06239ff

mysql
########

This is the administrators guide to maintaining MySQL databases

.. contents::

... view all 196 lines

created 152 days, 18 hours ago
stacker-lambda-function-datadog-log-forwarder

from .. import Blueprint

from stacker.blueprints.variables.types import CFNString

from stacker_blueprints.aws_lambda import Function

from troposphere import awslambda
... view all 59 lines

created 191 days, 12 hours ago
86f26248-35ce-4b5f-8a6a-c3edc8ff43f5

fox@blanka ~/h/s/p/pySFML2> cat README.txt 
bash
virtualenv env
source env/bin/activate
pip install --upgrade pip
pip install cython
cd ~/git/SFML
... view all 17 lines

created 202 days, 15 hours ago
python-porting-sfml-rect-intersects-to-avoid-sigsegc-address-bou

""" 
Porting Rect's intersects to pure Python to avoid::
 
  terminated by signal SIGSEGV (Address boundary error)

When calling::

... view all 80 lines

created 207 days, 22 hours ago
ecebd557-0986-4171-a0bf-c4b2b8d84aa2

us/index.html
output/migrating-from-wordpress-to-pelican/
output/migrating-from-wordpress-to-pelican/index.html
+ echo 5286e27fc73d966faa120fd47b9261a7b6de34cf
+ sudo /home/jenkins/salt-call-put-artifacts-onto-salt-master.sh
+ salt-call cp.push_dir /home/jenkins/workspace/russell.ballestrini.net 'glob=*.tar.gz'

... view all 18 lines

created 212 days, 13 hours ago
2aee774d-5bb6-4f50-b3f2-bd1afa7325f4

Your a punk!
... view all 1 lines

created 216 days, 16 hours ago
a-better-way-to-track-time-python-utc-no-months

from datetime import datetime

now = datetime.now().utctimetuple()

# example: 2018-345 12:15:17
print(
    "{}-{} {}:{}:{}".format(
... view all 15 lines

created 219 days, 10 hours ago
f89906ab-8de1-4818-9133-b07c87b755fd

 Connecting to NAS... Make sure the NAS system is powered on and connected to the network. 



Environment:

Software Version: FreeNAS-11.2-RELEASE (31f889bbf)
... view all 48 lines

created 219 days, 23 hours ago
smartos-running-on-thinkpad-t430

# Reference:
# https://wiki.smartos.org/display/DOC/SmartOS+Command+Line+Tips

[root@mbison /opt/setup-json]# psrinfo -vp
The physical processor has 2 cores and 4 virtual processors (0-3)
  The core has 2 virtual processors (0-1)
  The core has 2 virtual processors (2-3)
... view all 46 lines

created 224 days, 22 hours ago
fd9d4852-3ad1-4c0b-854b-159efc184676

What if, instead of figuring out locking, we created a unique but consistent schedule id (job `id`) across workers - then because `rq` uses `hmset` for `Job.create` we end up updating the existing key. 

If 30 schedulers all publish the same scheduled job (with the same ID), only one of them persists in redis?

An unset `id` when calling a `Scheduler.schedule` or `Scheduler.cron` causes each invocation to get it's own random and unique `uuid.UUID4`, which I believe is at the heart of the issue.

Let me know if there is a flaw in my logic.
... view all 7 lines

created 239 days, 18 hours ago
8603f387-06f9-428f-a9c4-1952acd3c264

Ten Tips For Long Road Trips: With Kids

These are tips I've learned the hard way while taking regular road trips with my family of 5.

I'm certain most of these also apply to trips in an Airplane.

Here is my tips so you don't have to wing it:
... view all 41 lines

created 247 days, 10 hours ago
2018-11-09-mall-dream

2018-11-09 mall dream
###########################

There were a few live bands playing throughout the mall, they had a small gather of people (5-15)
watching. Some had a small group of people (groupies?) dancing.

Most of the stores in the mall were vacant and empty.
... view all 125 lines

created 256 days, 10 hours ago
d505f55c-0586-451f-8f49-709af1a87810

RROR   ] An Exception occurred while executing state.highstate: [Errno 2] No such file or directory: '/var/tmp/.root_812c13_salt/running_data/var/cache/salt/minion/minions'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/__init__.py", line 1156, in run_wfunc
    result = self.wfuncs[self.fun](*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/wrapper/state.py", line 705, in highstate
    roster_grains)
  File "/usr/lib/python2.7/dist-packages/salt/client/ssh/state.py", line 229, in prep_trans_tar
... view all 24 lines

created 256 days, 23 hours ago
1a00766a-ee59-4339-afb9-e5e4bb087639

Vlan 1139 (Rballestrini-public)

------------------------------------------------
           TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 165.225.135.192
CIDR = ........................: /29
... view all 16 lines

pages 1 2 3 .. 34