Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Monday, February 11, 2019
What Makes a Fighter Pilot - From Deep Survival By Laurence Gonzales
He's the kind of person who, when you tell him something, he gets it right away. He's a good athlete. He's competitive. He can stand up in front of a hundred people and speak on something he doesn't know about. He'll just do it. He won't hesitate. He's a creature of habit and a perfectionist.
Saturday, February 09, 2019
Shame On CodeCademy - Corrupting Young Minds :)
Just kidding, but, why not be correct, in addition to whetting peoples' appetite.
In their lesson :
If you want to find out more about Regex, read more at MDN's regex article.
To see it in practice, let's use the pattern attribute in our HTML!
Instructions
1. We might also want to limit usernames to only letters and numbers (and not special characters like ! or @).
To add this validation, add a pattern attribute and set it to: "[a-zA-Z0-9]+" in the first <input> element.
Incorrect maestro! First character may not be a numero. So, it's [a-zA-Z][a-zA-Z0-9]+
These guys have thought of everything. Inspect their page with Chrome, and you see :
👋 Hi there!
Looks like you're using the developer tools on our site.
While you're in the area, how about popping over to https://careers.codecademy.com?
We're hiring for passionate, talented engineers, and would love to hear from you! ✨
In their lesson :
To see it in practice, let's use the pattern attribute in our HTML!
Instructions
1. We might also want to limit usernames to only letters and numbers (and not special characters like ! or @).
To add this validation, add a pattern attribute and set it to: "[a-zA-Z0-9]+" in the first <input> element.
These guys have thought of everything. Inspect their page with Chrome, and you see :
👋 Hi there!
Looks like you're using the developer tools on our site.
While you're in the area, how about popping over to https://careers.codecademy.com?
We're hiring for passionate, talented engineers, and would love to hear from you! ✨
Monday, February 04, 2019
Saturday, February 02, 2019
A Gorgeous Scrollbar - Courtesy of Chris Coyier
Why won't the guy clearly tell people how it's done? I searched and ended up having to reverse engineer. His CSS style-sheet, once you de-obfuscate, is about a 1000 lines long!
<style type="text/css">
html {
--maxWidth:1284px;
scrollbar-color:linear-gradient(to bottom,#ff8a00,#da1b60);
scrollbar-width:30px;
background:#100e17;
color:#fff;
overflow-x:hidden
}
html::-webkit-scrollbar {
width:30px;height:30px
}
html::-webkit-scrollbar-thumb {
background:-webkit-gradient(linear,left top,left bottom,from(#ff8a00),to(#da1b60));
background:linear-gradient(to bottom,#ff8a00,#da1b60);
border-radius:30px;
-webkit-box-shadow:inset 2px 2px 2px rgba(255,255,255,.25),inset -2px -2px 2px rgba(0,0,0,.25);
box-shadow:inset 2px 2px 2px rgba(255,255,255,.25),inset -2px -2px 2px rgba(0,0,0,.25)
}
html::-webkit-scrollbar-track {
background:linear-gradient(to right,#201c29,#201c29 1px,#100e17 1px,#100e17)
}
</style>
<style type="text/css">
html {
--maxWidth:1284px;
scrollbar-color:linear-gradient(to bottom,#ff8a00,#da1b60);
scrollbar-width:30px;
background:#100e17;
color:#fff;
overflow-x:hidden
}
html::-webkit-scrollbar {
width:30px;height:30px
}
html::-webkit-scrollbar-thumb {
background:-webkit-gradient(linear,left top,left bottom,from(#ff8a00),to(#da1b60));
background:linear-gradient(to bottom,#ff8a00,#da1b60);
border-radius:30px;
-webkit-box-shadow:inset 2px 2px 2px rgba(255,255,255,.25),inset -2px -2px 2px rgba(0,0,0,.25);
box-shadow:inset 2px 2px 2px rgba(255,255,255,.25),inset -2px -2px 2px rgba(0,0,0,.25)
}
html::-webkit-scrollbar-track {
background:linear-gradient(to right,#201c29,#201c29 1px,#100e17 1px,#100e17)
}
</style>
Let's dole out some credit where it's due : you can learn some cool stuff from Brad at his YT vid.
It strikes me while I'm watching it that - Rob Percival is lame - if you look at how he reverse-engineers the BBC page... man! Get yourself a Brad video!
Then it strikes me a while later - who are the geniuses at GOOG to have the vision to create such tools to put power in the hands of the laity? I've heard Pichai being given the credit for proposing Chrome..
Then it strikes me a while later - who are the geniuses at GOOG to have the vision to create such tools to put power in the hands of the laity? I've heard Pichai being given the credit for proposing Chrome..
Friday, February 01, 2019
Crimes Against Humanity : Laurence Gonzales
OMG! What a tedious ass this guy is. I can't help thinking - one of my greatest acts of survival is getting through his cowpat of a book. Doesn't he realize people who pick up such books are busy? And goddam it! At the end, he tells you want to do to survive - in a 12 point list. Really? You expect people to remember drab writing - or do you expect them to write the steps down and keep the piece of paper under their foot inside their shoe for the time they're actually pinned in a rapid river?
Jeez! Some of the stories are cool - but, think for a minute - he didn't make those up - he just tells you about them. What did Gregory David Roberts say when asked why he didn't just tell his own story instead of fictionalizing it? Answer - creating is much harder. It's easy to narrate events.
Bottom line - all of this guy's original writing is trash and you're saving yourself a lot of time skipping over it. Maybe the Kindle version lets you do that.
If he gave you some exercises you could do everyday, that would be something. A mnemonic you could use to remember the tips? That would help. Anything but serial listing of mundane ideas.. Please.. oh what a tedious ass!
The key point that this guy missed - none of the "survivors" he deifies read his book. If they had, they'd probably be dead, if not from not making it out of their ordeals, definitely from boredom.
Without knowing much, I can say one thing about survival - you can't read a book and miraculously have the odds increase in your favour. Now, if he described exercises and lists of things you could carry, that would be different.
I'd say - always have a ziplock bag with some dry material that you might be able to use to start a fire :)
And just after this, maybe between this and what comes two pages later, he took a month long vacation. No other way to explain this :
See - something better. Still, a whole book and hardly a word about meditation. Sure, he mentions Zen and all that, but not much of what *YOU* can do on a daily basis to increase the odds..
If this guy really wants to do his audience a favour - why not do some quality research and talk about what kinds of badges the survivors had racked up *before* the ordeal - compared to the bucket kickers - how many more workshops, books, etc had they under their belt?
Again, driving home my point :
Not a bad time to mention : Practice doesn't make perfect. It makes permanent. Perfect practice makes perfet!
Jeez! Some of the stories are cool - but, think for a minute - he didn't make those up - he just tells you about them. What did Gregory David Roberts say when asked why he didn't just tell his own story instead of fictionalizing it? Answer - creating is much harder. It's easy to narrate events.
Bottom line - all of this guy's original writing is trash and you're saving yourself a lot of time skipping over it. Maybe the Kindle version lets you do that.
If he gave you some exercises you could do everyday, that would be something. A mnemonic you could use to remember the tips? That would help. Anything but serial listing of mundane ideas.. Please.. oh what a tedious ass!
The key point that this guy missed - none of the "survivors" he deifies read his book. If they had, they'd probably be dead, if not from not making it out of their ordeals, definitely from boredom.
Without knowing much, I can say one thing about survival - you can't read a book and miraculously have the odds increase in your favour. Now, if he described exercises and lists of things you could carry, that would be different.
I'd say - always have a ziplock bag with some dry material that you might be able to use to start a fire :)
In putting his own to-do list together, I'd say he's missed the point of his own book. Consider what he says about Nick Williams @ Squaw Valley : Many factors contributed to Williams' surviving what would have killed most people. He was extremely fit, jogging and roller blading the steep hills of San Francisco. He was a graduate of the Naval Academy and had been a Marine fighter pilot. And he'd had the drive, strength, and character to climb the corporate ladder; he was president and CEO of Premisys Communications, a company with $100 million in annual sales at the time. So, as a spokesman for the hospital that treated Williams put it, "His mental toughness was unreal."
Can you get that by reading the dumbass list that G puts together? You decide. Can you read and act, or does it take years of hard work developing habits to :- Perceive, believe (look, see, believe)
- Stay calm (use humor, use fear to focus)
- Think/analyze/plan (get organized, set up small, manageable tasks)
- Take correct, decisive action (duh, when your out there, how do you know what's "correct")
- Celebrate your successes
- Count your blessings
- Play (sing, play mind games, recite poetry, count anything, do math problems in your head)
- See the beauty
- Believe that you will succeed (one that really cracks me up. A to-do list! Idiot!)
- Surrender (let go of your fear of dying)
- Do whatever is necessary (really? was this guy getting paid for the number of words in the book?)
- Never give up (year, right - same theme - a to-do list! Idiot!)
And just after this, maybe between this and what comes two pages later, he took a month long vacation. No other way to explain this :
The real heroism of the astronauts is not in the risks they take - any idiot can throw his life away - but in the much more arduous lengths to which they go to protect themselves from harm. They know that adventure becomes folly when you stop looking out for number one. It's not selfishness, it's that fine distinction between going forth boldly and going forth blindly, a balance between dedication to the mission and informed caution. It takes real skill to strike that balance, and at their best, adventurers are both bold and cautious. That means knowing where the envelope ends, and moreover, knowing yourself well enough to estimate correctly just how far beyond it you can go and still get back.
See - something better. Still, a whole book and hardly a word about meditation. Sure, he mentions Zen and all that, but not much of what *YOU* can do on a daily basis to increase the odds..
If this guy really wants to do his audience a favour - why not do some quality research and talk about what kinds of badges the survivors had racked up *before* the ordeal - compared to the bucket kickers - how many more workshops, books, etc had they under their belt?
Again, driving home my point :
I've watched as astronauts such as Bob Cabana, G R and J Newman, who did the first assembly of the International Space Station, become master of their mission. They studied everything, practiced every move, and trained half a decade for a task that took two weeks. It's the secret of their success. By the time they get to the real mission, it seems like just one more drill. It's familiar, and that allows clear thinking. A panicked mind is a useless mind. (Bingo - build up cognitive reserve).
Not a bad time to mention : Practice doesn't make perfect. It makes permanent. Perfect practice makes perfet!
Subscribe to:
Posts (Atom)