Recent Pads - Page 3

Total pad count: 688
created 343 days, 14 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 348 days, 14 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 363 days, 10 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 1 year, 6 days 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 1 year, 15 days 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 1 year, 15 days 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

created 1 year, 17 days ago
ea7e08f1-3306-48eb-be0f-8676428c8590

Get them _Drunk_,
Get them _Fed_,
Sell them a _Dream_,
and put them to _Bed_.

^ Integrate Vertically, Tell me I'm wrong.
... view all 6 lines

created 1 year, 17 days ago
7ceffe13-29db-4f34-a23e-c449e5443994

[   37.728676] cloud-init[1650]: fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["blkid", "&&", "ls", "/dev"], "delta": "0:00:00.001939", "end": "2018-10-31 20:30:41.935451", "msg": "non-zero return code", "rc": 2, "start": "2018-10-31 20:30:41.933512", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}



[   41.102935] cloud-init[1726]:     "msg": "{'stderr_lines': [], 'stdout': u'no-nvme-device-found\\n', 'changed': True, 'failed': False, 'stderr': u'', 'rc': 0, 'stdout_lines': [u'no-nvme-device-found']} {'stderr_lines': [], u'changed': True, u'end': u'2018-10-31 19:20:55.464923', 'failed': False, u'stdout': u'/dev/nvme1n1p1: LABEL=\"cloudimg-rootfs\" UUID=\"114c5a46-d3bd-49c0-bdf3-7990a8154029\" TYPE=\"ext4\" PARTUUID=\"34a452b2-01\"\\n/dev/loop0: TYPE=\"squashfs\"\\n/dev/loop1: TYPE=\"squashfs\"\\n/dev/loop2: TYPE=\"squashfs\"\\n/dev/loop3: TYPE=\"squashfs\"\\n/dev/nvme1n1: PTUUID=\"34a452b2\" PTTYPE=\"dos\"', u'cmd': [u'blkid'], u'rc': 0, u'start': u'2018-10-31 19:20:55.457200', u'stderr': u'', u'delta': u'0:00:00.007723', 'stdout_lines': [u'/dev/nvme1n1p1: LABEL=\"cloudimg-rootfs\" UUID=\"114c5a46-d3bd-49c0-bdf3-7990a8154029\" TYPE=\"ext4\" PARTUUID=\"34a452b2-01\"', u'/dev/loop0: TYPE=\"squashfs\"', u'/dev/loop1: TYPE=\"squashfs\"', u'/dev/loop2: TYPE=\"squashfs\"', u'/dev/
loop3: TYPE=\"squashfs\"', u'/dev/nvme1n1: PTUUID=\"34a452b2\" PTTYPE=\"dos\"']}"

... view all 75 lines

created 1 year, 22 days ago
599ab059-07d5-451e-90f0-a9ac3a5b5d76

Remarkbox is a free hosted comment 
system that works on your web pages.

It supports Markdown:

* and realtime
* in place 
... view all 27 lines

created 1 year, 23 days ago
4895b178-3631-4dee-b8fa-d7c275542f33

gone
... view all 1 lines

created 1 year, 25 days ago
f59d7f53-60bd-4b55-86fd-22889ff8fd91

I started going to a psychologist this year, Dr. Healy.

Here are some random topics we talked about.

* Your perfect right (didn't read it)

* Homecoming John bradshaw (didn't read it)
... view all 38 lines

created 1 year, 36 days ago
23df2b0a-5b4b-40bf-bf28-e40ddc58b97e

Is it a replacement cipher?

Is it a 1 to 1 replacement?
... view all 3 lines

created 1 year, 37 days ago
amazon-ai-recruiting-email

<removed>, Laura <<removed>@amazon.com>
	
Apr 9, 2018, 1:20 PM
	
to me

“…fulfill the highest most truthful expression of yourself as a human being” – Oprah Winfrey
... view all 71 lines

created 1 year, 46 days ago
70647e4f-3b8b-4804-afd2-0db5e9f45bd6

from queue import Queue

import random

class Checkpoint:

    def __init__(self, worker_count=1):
... view all 92 lines

created 1 year, 58 days ago
fcb8e6f3-1f44-454a-a38f-c67c28fb658c


... view all 3 lines

created 1 year, 68 days ago
441fc226-3021-4252-9819-843cc479cf5a

Mugwort
Clover
Possible daudy fleabang
Possible Quick weed
Chickori
Calgari pear
Milkweed
... view all 9 lines

created 1 year, 69 days ago
what-to-do-when-you-feel-inadequate

When you’re feeling inadequate there are four basic responses:

Ignore it:
  It’s a false alarm, you’re doing fine.
  There are false alarms – times I fear that I’m inadequate when I’m not.
     
Change your situation:
... view all 27 lines

created 1 year, 69 days ago
gundb-running-example-game-locally

Russell Ballestrini
@russellballestrini
Jul 06 15:47
Hey all. Thinking about maybe incorporating gun in a web game. My biggest question is around preventing cheating. It is my understanding most multiplayer games that care to prevent cheating the game, do so by using server side game logic. Seems like gun doesn't make any guarantees about how a client generated data and thus could be exploited. Gun might be useful for a realtime chat but maybe not game logic / mechanic validation, etc.
Do I have this mental model correct or is there a way to "verify" that the Javascript client code that produces the data was not tampered with?

Mark Nadal
... view all 314 lines

created 1 year, 79 days ago
ec4677c2-9dfb-4fb6-b6db-2463058a7047

gone
... view all 1 lines

created 1 year, 85 days ago
9725a43a-420d-42ac-b9d0-0905b1a37f19

# export ENVIRONMENT=<stage/prod>
export ENVIRONMENT=$1


if [ "$ENVIRONMENT" = "prod" ]; then
  export EMPIRE_API_URL="https://empire.remind.com"
else
... view all 22 lines

pages 1 2 3 4 5 .. 35