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.
Sunday, November 26, 2017
Adorable Honesty : Personal History
Some lessons were impressed on me by reverse example. When I was young, I perceived grown-ups behaving quite oddly at times. I remember being shocked or dismayed by things I observed and making silent vows not to behave as they did when I grew up. For instance, my mother, when confronted with a line waiting at the movies, would go up to the box oflice and say, “I am Mrs. Eugene Meyer of The Washington Post,” and demand to be taken in and seated. At that time, she did indeed get in. l cringed with embarrassment and hoped the ground would swallow me up. It had such a lasting effect on me that I have never been able to deal with headwaiters in restaurants who put you “in Siberia” rather than the better part of the restaurant. I just go meekly to Siberia.
Saturday, November 25, 2017
Defensive Programming
Programming Defensively :
Consider designing your code to make bugs easier to track down. Bugs that raise an error far away from the root cause are harder to track down.
For example:
Consider designing your code to make bugs easier to track down. Bugs that raise an error far away from the root cause are harder to track down.
For example:
- Declare the expected argument types of one or more of your functions.
- You can either have the platform's evaluator perform the argument type checking or write your own code to check.
- Include assertions in your code that check for a condition that holds if things are in working order.
- Write a function to check that a condition holds and raise an error if the condition does not hold.
Saturday, November 11, 2017
How To "Variablize" Your Environment Settings
You have
export bad_guy='machiavelli_the_3.12.3'
export path = 'x:y:z:/usr/lib/machiavelli_the_3.12.3'
export bad_home='/usr/lib/share/utils/machiavelli_the_3.12.3/bin'
you get the idea. You want to upgrade machiavelli to an even more devious character - once - in ONE place.
So you'd rather see :
export bad_guy='machiavelli_the_3.12.3'
export path = 'x:y:z:/usr/lib/'$bad_guy''
export bad_home='/usr/lib/share/utils/'$bad_guy'/bin'
You get the idea..
This is the best I have .. not even sure how to google this.. Pretty inelegant. Also, you can't just pipe your existing file through this in your editor :(
#!/usr/bin/perl
$file = shift;
$var = shift;
$sys = "grep $var $file";
$var_line = `$sys`;
$val = (split( /'/ , $var_line ))[1];
print $var_line ;
$sys = q{grep -v }.$var.' '.$file.q{ | perl -p -e 's/\b}.$var_val.q{\b/\047\$}.$var.q{\047/;'};
$rem = `$sys`;
print $rem;
export bad_guy='machiavelli_the_3.12.3'
export path = 'x:y:z:/usr/lib/machiavelli_the_3.12.3'
export bad_home='/usr/lib/share/utils/machiavelli_the_3.12.3/bin'
you get the idea. You want to upgrade machiavelli to an even more devious character - once - in ONE place.
So you'd rather see :
export bad_guy='machiavelli_the_3.12.3'
export path = 'x:y:z:/usr/lib/'$bad_guy''
export bad_home='/usr/lib/share/utils/'$bad_guy'/bin'
You get the idea..
This is the best I have .. not even sure how to google this.. Pretty inelegant. Also, you can't just pipe your existing file through this in your editor :(
#!/usr/bin/perl
$file = shift;
$var = shift;
$sys = "grep $var $file";
$var_line = `$sys`;
$val = (split( /'/ , $var_line ))[1];
print $var_line ;
$sys = q{grep -v }.$var.' '.$file.q{ | perl -p -e 's/\b}.$var_val.q{\b/\047\$}.$var.q{\047/;'};
$rem = `$sys`;
print $rem;
How It's Done : Dov Moran
Congratulations. Enough said..
http://nocamels.com/2013/03/dov-moran-talks-to-nocamels-about-sandisk-comigo-modu/
http://nocamels.com/2013/03/dov-moran-talks-to-nocamels-about-sandisk-comigo-modu/
Sunday, October 29, 2017
The Magic of Taek Joo Kim, Now Working for AMZN
Man, I love it! Omnibox timer - you can tell Chrome to remind you to get up and walk - and it'll literally "tell" you - it pronounces your message.
How does the man do it?
https://github.com/taicki/omnibox-timer
https://chrome.google.com/webstore/detail/omnibox-timer/iooaeaogjngpihndkcednkblomlkaaif?hl=en-US
How does the man do it?
https://github.com/taicki/omnibox-timer
https://chrome.google.com/webstore/detail/omnibox-timer/iooaeaogjngpihndkcednkblomlkaaif?hl=en-US
Handy Excel Hacks
https://excelwithbusiness.com/wp-content/uploads/2017/10/100-Excel-Tips_EwB.pdf
Paste Special : ALT E S V
Also, Transpose can be very handy at times.
Add Multiple Rows
F4 for Absolute Reference - did you know that pressing F4 repeatedly will toggle through the various combos?
A treasure trove!
Paste Special : ALT E S V
Also, Transpose can be very handy at times.
Add Multiple Rows
F4 for Absolute Reference - did you know that pressing F4 repeatedly will toggle through the various combos?
A treasure trove!
Saturday, October 28, 2017
Excel howto : Quickly ID a Column of Text Using a Perl Hack
Okay, that doesn't make sense. Here's what you want to do :
A
B
C
C
A
A
D
D
D
A
to turn to (you guessed it - for use in Pivot tables)
1
2
3
3
1
1
4
4
4
1
select all and pipe through (Yes, you see why you want Cygwin :)
perl -n -e 'BEGIN{%table=(); $count=0} chomp; unless( defined $table{$_} ){ $table{$_} = $count++; } print "$_," and print $table{$_} and print "\n";'
This will give you
A,1
A,1
B,2
...
So you can easily paste this back in by doing the smart import..
Here's a braindead way to show text in Excel pivot table values area :
https://www.youtube.com/watch?v=wslp2BqHuz8
Shame on Contextures Inc.
A
B
C
C
A
A
D
D
D
A
to turn to (you guessed it - for use in Pivot tables)
1
2
3
3
1
1
4
4
4
1
select all and pipe through (Yes, you see why you want Cygwin :)
perl -n -e 'BEGIN{%table=(); $count=0} chomp; unless( defined $table{$_} ){ $table{$_} = $count++; } print "$_," and print $table{$_} and print "\n";'
This will give you
A,1
A,1
B,2
...
So you can easily paste this back in by doing the smart import..
Here's a braindead way to show text in Excel pivot table values area :
https://www.youtube.com/watch?v=wslp2BqHuz8
Shame on Contextures Inc.
Sunday, October 22, 2017
Keyboard Shortcuts for Google Chrome
Which imbecile came up with CTRL-D for "bookmark"? CTRL-D is for "duplicate" - every i knows that. Surely?
What if you need to change it? (to duplicate that is)
You open a new tab and, in the URL field, type :
chrome://extensions
Now, scroll to the bottom and click on "Get more extensions"
That takes you to the Chrome Web Store. In the search field, enter "keyboard shortcuts".
Then, pick the one by Mike Crittenden.
Install it and then, in the space next to the URL field in Chrome (on the right), you'll see the icon for this tool .. it has a 'Q' in the top-left corner..
Right-click on this guy and, in the drop-down menu, choose Options. How are you supposed to know this? Don't ask me :)
Now, you get to place where you can easily add new shortcuts. Nice work.
https://github.com/mikecrittenden/chrome-shortkeys
What if you need to change it? (to duplicate that is)
You open a new tab and, in the URL field, type :
chrome://extensions
Now, scroll to the bottom and click on "Get more extensions"
That takes you to the Chrome Web Store. In the search field, enter "keyboard shortcuts".
Then, pick the one by Mike Crittenden.
Install it and then, in the space next to the URL field in Chrome (on the right), you'll see the icon for this tool .. it has a 'Q' in the top-left corner..
Right-click on this guy and, in the drop-down menu, choose Options. How are you supposed to know this? Don't ask me :)
Now, you get to place where you can easily add new shortcuts. Nice work.
https://github.com/mikecrittenden/chrome-shortkeys
Friday, October 20, 2017
Wer ist das Genius?
Who is the genius behind this super blog that teaches you amazing stuff. He ain't no Jacob Vandenplas or Rachel Tatman (just kidding :) probably better ) but ... he's..
Armed with a 4.0 GPA in Computer Science from Napoli (Bachelors and Masters), he's now at :
Senior Data Scientist
Hive | Centrica Hive Limited
May 2017 – Present
Cambridge, United Kingdom
I work with a large team of data scientists across a number of projects. My responsibilities include:
- design of Machine Learning models to integrate into real-time products
- manage stakeholders communicating results and set expectations
- mentoring other data scientists
Hive | Centrica Hive Limited
May 2017 – Present
Cambridge, United Kingdom
I work with a large team of data scientists across a number of projects. My responsibilities include:
- design of Machine Learning models to integrate into real-time products
- manage stakeholders communicating results and set expectations
- mentoring other data scientists
Congratulations mensch. Great stuff.
Subscribe to:
Posts (Atom)


