Recent Posts

Pages: [1] 2 3 ... 10
1
Table-top Games / Re: Board Game Calendar Weekly Challenges
« Last post by Dragon on April 05, 2021, 16:37:25 »
Week 15 - Play an economic game and double all the starting resources you receive
2
Table-top Games / Re: Board Game Calendar Weekly Challenges
« Last post by Dragon on March 29, 2021, 20:35:29 »
Week 14 - Play a game which comes with multiple game boards.
3
Table-top Games / Re: Board Game Calendar Weekly Challenges
« Last post by Dragon on March 22, 2021, 16:53:05 »
Week 12 - Play the first board game you ever loved.

Week 13 - Play Monopoly to remind you how much board games have evolved.
4
General Discussions / Online Sound Effect Generators
« Last post by Dragon on March 19, 2021, 16:10:21 »
In one Greasemonkey script that I wrote, I use a little audio sound. I don't remember where I had found that specific string of text that generated the sound I use. Seems like there was an online sound maker that gave me the Base64 text string afterward. So now I'm looking for something like that again.

Here's one that I just found that seems similar the the one I remember from years ago, but not quite the same:
https://www.leshylabs.com/apps/sfMaker/

If more are found, please add links to others that are similar.
5
Blogs / Tips for Difficult Tasks
« Last post by Dragon on March 17, 2021, 18:35:26 »
I just read an article called Tips from neuroscience to keep you focused on hard tasks by David Badre that I think has some good suggestions - some things I've said before myself, and some things that I hadn't thought of before. I'm just going to put the summary here with some of my own thoughts or popular phrases, but I recommend reading the entire article on nature.com for all the details.

  • Make space
    • Set aside large blocks of time. (Rome wasn't built in a day.)
    • Be consistent. (Practice makes perfect.)
  • Minimize distraction and never multitask
    • Remove cues to other tasks. (It's easy to get side-tracked.)
    • Beware the allure of easy tasks. (Getting the little things done might feel good, but the big task is still out there.)
  • Engage in good problem-solving habits
    • Stay with it. (Don't give up.)
    • Be open to reconceptualizing problem structure. (Approach from a different angle.)
    • Take breaks. (All work and no play makes Jack a dull boy.)
    • Interact with others. (Two heads are better than one.)
6
General Discussions / Re: Greasemonkey
« Last post by Dragon on March 09, 2021, 20:12:48 »
I tried this on a Mac using Chrome with Tampermonkey tonight and my version 1 wouldn't match the site in Tampermonkey.

Since this site is always using http protocol right now and appears to always be working without the www, I'm making the following change (to be modified in my original post).
Code: [Select]
// @match    http://*.?superdupergames.org/*

Changed to:

Code: [Select]
// @match    http://superdupergames.org/*

Apparently  the URL match to work in Tampermonkey along with Greasemonkey didn't like the wildcard stuff to match the beginning of the URL. Also, I tried removing the http protocol and Greasemonkey hated that. Fortunately this works for both.
7
Table-top Games / Re: Board Game Calendar Weekly Challenges
« Last post by Dragon on March 06, 2021, 22:35:30 »
Week 11 - Play a game illustrated by more than one artist.
8
General Discussions / Greasemonkey for Homeworlds on SuperDuperGames.org
« Last post by Dragon on March 04, 2021, 00:54:34 »
I've been using Greasemonkey and Tampermonkey for a few years for little adjustments to things here and there. Generally, I use it for sites that I have no direct control over, such as adding links to commonly used pages in ticketing systems. This time, I've used it to adjust a form on site that I've used often - superdupergames.org.

Homeworlds is the most commonly played game on that site, but the site is slow, and the navigation is clunky. Even playing Homeworlds on there is a matter of entering text commands into a form, but the biggest problem that I have with it is that the command form is not even visible on the screen at the same time as the map for the game. Tonight, I created a Greasemonkey script to position the command form and stash near starmap. I've also made that form draggable, in case it's covering up something that you want to see.

Additionally, I've added a link to the Telegram Game in the top nav menu, which is a casual drawing game, like playing the Telephone party game, but with pictures. The Telegram Game is accessible through a small link on the My SDG page, but it's not very noticeable there and I haven't seen it on the navigation menu anywhere else... until now. So here it is:

Code: [Select]
// ==UserScript==
// @name     SDG Enhancements
// @version  1.1
// @match    http://superdupergames.org/*
// ==/UserScript==

// Add Telegram link to main menu
var myMenuP = document.querySelector('p');
var myNewA = document.createElement('a');
myNewA.setAttribute('href',"http://superdupergames.org/?page=telegram");
myNewA.setAttribute('style',"font-weight:bold;");
myNewA.innerText = 'Telegram Game';
myMenuP.append(' | ');
myMenuP.appendChild(myNewA);

// Float Homeworlds form and stash near starmap
if(window.location.search.indexOf('page=play_homeworlds') !== -1) {
  var myForm = document.querySelector('form');
  var myNewP = document.createElement('p');
  myNewP.innerText = 'Is this in your way? You\'re in luck! This box is draggable!';
  myNewP.setAttribute('style', 'text-align:center; font-style:italic;');
  var myImg = document.querySelector('table table table img');
  myImg.setAttribute('style', "max-width:100%");
  myForm.setAttribute('style',"position:fixed; width:400px; left:10%; background-color: #c0c0c0; border: 3px groove; cursor: grab; padding: 10px;");
  //myNewP.setAttribute('style',"position:absolute; right:0;");
  myForm.appendChild(myNewP);
  myNewP.appendChild(myImg);
}

// Make the box draggable: source: https://www.w3schools.com/howto/howto_js_draggable.asp
dragElement(myForm);

function dragElement(elmnt) {
  var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
  if (document.getElementById(elmnt.id + "header")) {
    // if present, the header is where you move the DIV from:
    document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
  } else {
    // otherwise, move the DIV from anywhere inside the DIV:
    elmnt.onmousedown = dragMouseDown;
  }

  function dragMouseDown(e) {
    e = e || window.event;
    e.preventDefault();
    // get the mouse cursor position at startup:
    pos3 = e.clientX;
    pos4 = e.clientY;
    document.onmouseup = closeDragElement;
    // call a function whenever the cursor moves:
    document.onmousemove = elementDrag;
   
    elementDrag.style.backgroundColor = 'blue';
    elementDrag.style.cursor = 'move'; // You can do this or use a css class to change the cursor
    return true;
  }

  function elementDrag(e) {
    e = e || window.event;
    e.preventDefault();
    // calculate the new cursor position:
    pos1 = pos3 - e.clientX;
    pos2 = pos4 - e.clientY;
    pos3 = e.clientX;
    pos4 = e.clientY;
    // set the element's new position:
    elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
    elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
  }

  function closeDragElement() {
    // stop moving when mouse button is released:
    document.onmouseup = null;
    document.onmousemove = null;
  }
}

I've also uploaded this script to GitHub.

Below are a couple screenshots showing how it looks using my Greasemonkey script on that site.
9
Table-top Games / Re: 10 x 10 Challenge - 2021
« Last post by Dragon on March 01, 2021, 17:36:52 »
In Week 8 we played Dominion and Week 9 we played Carcassonne.
Here is our current standing:

Farting Cows And The End Of The World
Caylus 1303 . . . . . . . . . . . . . . . . . . .
Dinosaur Tea Party . . . . . . . . . . . . . .
Coloretto . . . . . . . . . . . . . . . . . . . . .
Carcassonne . . . . . . . . . . . . . . . . . . .
Boggle . . . . . . . . . . . . . . . . . . . . . . .
Dominion . . . . . . . . . . . . . . . . . . . . .
10
Table-top Games / Re: Board Game Calendar Weekly Challenges
« Last post by Dragon on March 01, 2021, 17:32:14 »
Week 10 - Play a game set in a real-world country.
Pages: [1] 2 3 ... 10