The Official Status Thread
-
bypassing their insurance and buying on the market. What the fuck is that shit?
Probably the same thing happening in my company. We're now using a "Health Exchange" to "shop around" for insurance. In other words: Everyone for themselves, or everyone for themselves within our selection of providers.
Edit: Possible ?
Filed under: What fire? that b.....m was weeks ago!
-
@Lorne_Kates said:
anyone out there with a 3d printer want to print me up a gear
Send me an STL? I don't have time to CAD one up myself but I have access to a Stratasys machine that does a nice job.
-
Status: Looking through junk email and find a legitimate email from Microsoft Hololens. Apparently they're going to be doing a Demo in my area:
Filed under: TIL I'm one of the most active developers in the Phoenix area...
-
Ever play the card game "War"?
What's that, did someone say they wanted me to dick around for a couple hours and code War in JavaScript? No? Well fuck you, I did it anyways.
Console War for now. I'll create a UI later. And it's QA'd as much as you'd expect JavaScript on Discourse to be.
function shuffle(array)
{
var currentIndex = array.length, temporaryValue, randomIndex ;// While there remain elements to shuffle...
while (0 !== currentIndex) {// Pick a remaining element... randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; // And swap it with the current element. temporaryValue = array[currentIndex]; array[currentIndex] = array[randomIndex]; array[randomIndex] = temporaryValue;
}
return array;
}var suites = ["Hearts", "Spades", "Diamonds", "Clubs"];
var ranks = {"Two" : 2, "Three" : 3, "Four" : 4, "Five" : 5, "Six" : 6, "Seven" : 7, "Eight" : 8, "Nine" : 9, "Ten" : 10, "Jack" : 11, "Queen" : 12, "King" : 13, "Ace": 14};
var deck = [];for(s = 0; s < suites.length; s++)
{
suit = suites[s];for(var rank in ranks) { card = {"Suit" : suit, "Rank" : rank, "Value" : ranks[rank]}; deck.push(card); }
}
deck = shuffle(deck);
var decks = [];
decks[0] = [];
decks[1] = [];var wins = [];
wins[0] = [];
wins[1] = [];var kitty = [];
var winner = 0;
var battle = [];
battle[0] = [];
battle[1] = [];for(i = 0; i < deck.length; i++)
{
decks[i%2].push(deck[i]);
}// draw one card from deck IDX, return that card or null
// when a deck runs out, reshuffle win pile into deck
function draw(idx)
{
if(decks[idx].length == 0)
{
console.log("Player " + idx + " shuffles " + wins[idx].length + " cards");
wins[idx] = shuffle(wins[idx]);
while(wins[idx].length > 0)
{
decks[idx].push(wins[idx].shift());
}
}return decks[idx].shift();
} // end function draw
function DoWar()
{
winner = -1; // tie
console.log(battle[0][battle[0].length - 1].Rank + " vs. " + battle[1][battle[1].length - 1].Rank);
for(i = 0; i <=1; i++)
{
up = i % 2;
down = (i+1) % 2;if(battle[up][battle[up].length - 1].Value > battle[down][battle[down].length - 1].Value) { winner = up; console.log("A winner is " + winner); } } if(winner < 0) { console.log("W-A-R!"); // a tie had occured. Oh noes! // W-A-R then flip 1 for(i = 1; i <= 4; i++) { for(p = 0; p <=1; p++) { card = draw(p); if(card != null) { battle[p].push(card); } else if(i == 0) { console.log("Player " + i + " has run out of cards and cannot commit to war. Checking for armistice."); // someone has run out of cards, AND ended with a war // the winner of the game will be whoever has more cards for(idx = 0; idx <= 1; idx++) { // move everything into the battle piles while(wins[idx].length > 0) { battle[idx].push(wins[idx].shift()); } while(decks[idx].length > 0) { battle[idx].push(decks[idx].shift()); } } winner = -1; // tie // total up the values of the cards in the decks totals = []; totals[0] = 0; totals[1] = 0; for(i = 0; i <=1; i++) { for(j = 0; j < battle[i].length; j++) { totals[i] = totals[i] + battle[j].Value; } } // compare totals for(i = 0; i <=1; i++) { console.log("Player " + i + " has " + totals[i] + " points in rank"); up = i % 2; down = (i+1) % 2; if(totals[up] > totals[down]) { winner = up; console.log("A winner of the whole game is " + winner); } } if(winner < 0) { console.log("Players are tied in rank. Checking by number of cards"); // it is still a tie because both players have the same value of cards // go by number of cards for(i = 0; i <=1; i++) { console.log("Player " + i + " has " + battle[i].length + " cards"); up = i % 2; down = (i+1) % 2; if(battle[up].length > battle[down].length) { winner = up; console.log("A winner of the whole game is " + winner); } } } if(winner < 0) { console.log("Players are equal in rank and cards. Putting all cards back into decks and starting again."); // OMFG both players have the same number of cards and the same total values. // just start the damn game again! for(i = 0; i <= 1; i++) { battle[i] = shuffle(battle[i]); decks[i] = battle[i]; battle[i].push(draw(i)); } winner = DoWar(); } if(winner < 0) { // forget it. The universe has ended. throw new Exception("Forget it. The universe has ended"); } return winner; } // end if p = 0 } // for p loop } // for i loop // it is not a tie. the battle decks have been set. do war winner = DoWar(); } // end tie return winner;
} // end battle
// keep going until someone runs out of cards
while(decks[0].length + wins[0].length > 0 && decks[1].length + wins[1].length > 0)
{winner = -1; for(i = 0; i <= 1; i++) { battle[i].push(draw(i)); } while(winner < 0) { winner = DoWar(); // check the topmost card in each player battle pile, and the winner is returned, or -1 for a tie } for(i = 0; i <=1; i++) { while(battle[i].length > 0) { wins[winner].push(battle[i].shift()); } } for(i = 0; i <= 1; i++) { // shuffle dead pile back into deck if(decks[i].length == 0) { decks[i] = shuffle(wins[i]); wins[i] = []; } }
}
console.log("The winner of the game is " + winner);
console.log(decks[0]);
console.log(decks[1]);
-
-
I thought we gave our money to @Lorne_Kates
You did. But none of you had any money. So while I technically have 100% of your monies...
Filed under: Fuck you.
-
Impressive. The one I coded in BASIC was about 40 lines longer, congrats!
(It was for the Ti83+, so certain functions had to be... emulated)
Filed under: It's been a while since I've seen someone code golf...
-
I love the Ford Fusion, especially the grill and front end Ford had Austin Martin design for them while they owned them. I want one of my very own.
My other top choice is the Kia Cee'd with a self-parking system.
-
-
I love the Ford Fusion, especially the grill and front end Ford had Austin Martin design for them while they owned them. I want one of my very own.
Do you want the Platinum edition? Do you want it in "Bareback man-on-man love red"? They only reserve those for the most talented of code monkeys.
-
STATUS: It took like a minute to delete a single 30GB file on a VPS. Who knows how many layers of VFS abstraction are beneath this ting.
-
My uncle works at Ford of Germany, Cologne.
He always has the latest Ford Mondeo Ghia.
-
-
Yup.
Went with the English name though.
-
I thought you went with the French name ...
-
We stole their name from them when we thrashed them at Waterloo ;)
-
You trashed who in Belgium?
-
belgium
I meant Trafalgar
-
Yeah I mix those two places up all the time
-
@aliceif said:
Cologne
You mean in Köln?
That name always throws me off in written English. Particularly because it tends to be pronounced pretty similar in English and German.
-
Belle-Alliance?
-
Yeah, it is. I spec'd one out on the Kia website.
-
Nifty car. Stupid name.
-
I once had a diesel C-Apostrophe-D as a hire car. Don't let the brand name fool you: they're pretty good.
-
Kias are a bit small for my tastes, but I have usually been pleasantly surprised by the build quality when in their cars. They have come a long way since they first hit our shores. The first cars they brought were rubbish.
-
-
I won't drive a minivan. :-P
-
That's fine, you can have one of these:
-
@Mikael_Svahnberg, you mentioned building a desk a while back that would convert from sitting to standing. I may have found one for you.
-
How about this: I won't own a Kia. ;)
-
And I will be damned if I will pay $60K for a Kia, and apparently neither will anyone else in the USA...
-
Nice. A bit bulky, but I can re-use the general principle. From the looks of things, I won't have to, though. A new desk is already ordered...
-
Status: dunno why but this morning feels like it needs celebration. Bourbon, cigar, and a book on the front steps it is.
-
You're a father. It's inevitable. *cackles diabolically*
-
There was a recent study that suggested that standing desks may not have any health benefits, though I didn't read it since I don't care about standing desks that much. Also, @Mikael_Svahnberg, there's a company that sells desk-to-standing-desk converter kits. Their name is Ergonomics or something. Basically it's a case of "yo dawg, I herd you liek desks, so we put a desk on your desk" but you might be able to use it for something.
-
Thing is... i don't want a raisable desk. I have one, and I bang my knees into the support beam everytime I sit down. Ruddy nuisance, it is.
-
Status: Writing my presentation for next week because I don't want to have to spend my flight to DC with my laptop open the whole time.
My status tomorrow will be “em-planed” on an A333. And it seems that FlightAware isn't one-boxed…
-
There was a recent study that suggested that standing desks may not have any health benefits,
Depends if the desk is gluten free or not.
Filed under: Office desks are full of toxins
-
You're a father. It's inevitable. *cackles diabolically*
Not really. My parents have made do with large family hatchbacks; they started with a late 80s Vauxhall Cavalier, then an early 90s Nissan Bluebird, and are now on their third Vauxhall Vectra. But then we were a family of four; any more than that, and we would have had to consider an MPV.Still, I am reminded of something on Top Gear once, when the presenters were going on about how a man driving a people carrier is a sign that that man has given up on life and is just waiting for the day he dies. But that's not the worst; it seems that with some families, the mother drives with one of the kids in the front and the father behind. Which led to James May saying the mother is effectively saying "You've given me the kids, now get in the back."
-
You're a father. It's inevitable. cackles diabolically
No, it isn't. The great thing about having two kids is never having to drive anyone else anywhere. Including my bitching and complaining father-in-law.
And if I did need something that big, I would not buy a minivan. I would get something like a Yukon Denali or a QX80.
-
Perhaps you just need one of these?
-
Well, that is one of the dumbest things I have ever seen.
-
Status: late brunch, but I'm trying @Lorne_Kates's fried cheese envelope idea with maple sausage and gods damn it's good.
-
-
Yeah, I don't understand this trend of kids => minivan. I wouldn't buy any 7 seat shit like that and now that my kids are not toddlers I'm thinking of buying a smaller car: Leaf or a Fiat 500. Because you have kids it doesn't mean you're castrated.
-
Status: Got the kitchen faucet aerator un-wedged from interior of the garbage disposal and still have ten fingers.
-
Because you have kids it doesn't mean you're castrated.
I bought my Corvette because a friend was getting castrated by his soon to be wife. I am not letting the same happen to me, and neither of us want a minivan.
-
Status: Naturally woke up for a total of 11 hours of sleep. I feel great! But... So much wasted time...
Filed under: I think there's something wrong with me...
-
Filed under: I think there's something wrong with me...
There is. You're not getting enough sleep during the week.
Sleeping in and feeling well-rested is not a waste of time IMO.
-
getting enough sleep during the week.
Bed at 11p, wake up at 8a, achieve actual awareness at ~10:30a.