Eclipse August 21, 2017

Eclipse on August 21, 2017 will be visible in Minnesota only as a partial eclipse. Total eclipse can be visible south of Minnesota, probably good place to go will be places in Nebraska, Kansas or Missouri. Totality will be around 1 PM CDT.
See more at NASA page SE2017Aug21Tgoogle or interactive map.

Next closest opportunity will be on 4 minutes of totality August 4, 2024 in Indianopolis at 2:08 PM CDT.

Posted in workday | Leave a comment

Sexagesimal one character digits

Sexagesimal (base 60) is a numeral system with sixty as its base. In some form with help of decimal digits  is used for measuring time, angles, and geographic coordinates. There are no special symbols for it’s digits like in binary system (0,1) or decimal system (0,1,2,3,4,5,6,7,8,9). For certain application, there could be an option to use existing characters from ASCII table and assign them value of sexagesimal digits [0-9A-Za-x]. Value of such digit is monotonically growing, so it possible to use it for ordering and sorting.

Transformation table  could look like this:

0: 0123456789
1: ABCDEFGHIJ
2: KLMNOPQRST
3: UVWXYZabcd
4: efghijklmn
5: opqrstuvwx

Here are an example transformations from decimal system into such sexagesimal system with it’s digits defined above:
00:00 -> 00, 01:01 -> 11, 05:10 -> 5A, 10:10 -> AA, 12:10 -> CA, 12:30 -> CU, 12:59 -> Cx, 12:33 -> CX, 23:50 -> No, 10:36 -> Aa, 11:59:59 -> Bxx, 18:30:00 -> IU0.

/* Example of JAVA method for n60 0..59 */
public static char sexagesimal_char(int n60) {
   if (n60 < 10) return (char) (48 + n60);//or (‘0’ + n60)
   if (n60 < 36) return (char) (55 + n60);//65-10 or (‘A’ + n60 – 10)
   return (char) (61 + n60);              //97-36 or (‘a’ + n60 – 36)
}

Posted in workday | Leave a comment

Irish Soda Bread

On Saint Patrick’s day I’ve got surprising gift: Irish Soda Bread. It was gone almost immediately. Very tasty, sweet, a little bit crunchy, just fabulous. Bought at Walmart. Here is link to their recipe.

Ingredients

Nonstick cooking spray
2 cups all-purpose flour
1/4 cup granulated sugar
1 1/2 tsp. baking powder
1 tsp. salt
3/4 tsp. baking soda
3 tbsp. unsalted butter, chilled
1 cup lowfat buttermilk
1/2 cup Nestlé® Raisinets® Milk Chocolate-Covered Raisins
1 tbsp. decorating or coarse sugar

 

Directions

  • Preheat oven to 375° F. Spray 8-inch-round cake pan with nonstick cooking spray.
  • Place flour, granulated sugar, baking powder, salt, and baking soda in food processor; pulse to combine (or, combine ingredients in large bowl).
  • Add butter to food processor; pulse until mixture resembles coarse meal (or, cut butter into pieces, add to bowl and use fingertips to rub until coarse meal forms).
  • Add buttermilk to food processor; pulse to combine (or, make well in center of flour mixture, then add buttermilk and stir dry ingredients into milk to blend).
  • Turn dough onto floured surface; gently knead in Raisinets. Form into ball. Place ball in prepared pan (dough will not come to edges of pan). Sprinkle top with decorating sugar.
  • Bake for 40 minutes or until golden brown. Cool in pan on wire rack for 10 minutes; remove to wire rack. Serve warm or at room temperature.
Posted in household | Leave a comment

Romaine lettuce orange juice smoothie

Simple and easy romaine lettuce orange juice smoothie. See pictures below. There are about 225g of lettuce and 335g of orange juice resulting in two glasses of the smoothie.




Good source of information about food is at http://www.ars.usda.gov/ba/bhnrc/ndl including downloadable files.

Posted in household, workday | Leave a comment

md5sum for files in the directory

Here is nice one line solution to generate list of md5sums:
ls *.py | while read f;do md5sum $f;done > /tmp/list1.md5sums

Or oneliner for subdirectory tree:
find . -name "*.py" | while read f;do md5sum $f;done

Posted in workday | Leave a comment

Charter 6rd configuration

It’s good to know, that Internet Service Provider CHARTER is getting ready for IPv6. There is a trial program, and here is working Linux configuration:

#edit /etc/config/network
#/etc/init.d/network reload
config interface 'wan6'
        option proto '6rd'
        option peeraddr '68.114.165.1'
        option ip6prefix '2602:100::'
        option ip6prefixlen '32'
        option ip4prefixlen '0'

With this configuration it’s possible to browse websites like whatismyv6.com, ip6.me, ipv6-test.ch, test-ipv6.cl, speedtest6.cesnet.cz, and more, or to ping IPv6 addresses below.

#charter dns6 1
$ ping6 2607:f428:ffff:ffff::1
PING 2607:f428:ffff:ffff::1 (2607:f428:ffff:ffff::1): 56 data bytes
64 bytes from 2607:f428:ffff:ffff::1: seq=0 ttl=59 time=35.329 ms
64 bytes from 2607:f428:ffff:ffff::1: seq=1 ttl=59 time=40.211 ms
64 bytes from 2607:f428:ffff:ffff::1: seq=2 ttl=59 time=38.683 ms

$ ping6 whatismyv6.com
PING whatismyv6.com (2001:4810::110): 56 data bytes
64 bytes from 2001:4810::110: seq=0 ttl=56 time=109.845 ms
64 bytes from 2001:4810::110: seq=1 ttl=56 time=63.858 ms

$ ping6 speedtest6.cesnet.cz
PING speedtest6.cesnet.cz (2001:718:1:a100::161:30): 56 data bytes
64 bytes from 2001:718:1:a100::161:30: seq=0 ttl=50 time=148.320 ms

$ ping6 www.ipv6.cz
PING www.ipv6.cz (2001:718:1:101::6): 56 data bytes
64 bytes from 2001:718:1:101::6: seq=0 ttl=50 time=149.869 ms

#google public DNS6
$ ping6 2001:4860:4860::8888
PING 2001:4860:4860::8888 (2001:4860:4860::8888): 56 data bytes
64 bytes from 2001:4860:4860::8888: seq=0 ttl=54 time=52.621 ms

$ ping6 2001:4860:4860::8844
PING 2001:4860:4860::8844 (2001:4860:4860::8844): 56 data bytes
64 bytes from 2001:4860:4860::8844: seq=0 ttl=54 time=57.752 ms
Posted in workday | Leave a comment

Ethernet cables

With improving internet infrastructure, higher speeds are now possible. In case of gigabits per second speed one needs to pay attention to the ethernet cable. Better to choose Cat 5e or even Cat 6. There is nice article What Kind of Ethernet (Cat-5/e/6/a) Cable Should I Use?
Wikipedia: CAT 5, CAT 6
161028_172018-cat5e

Posted in workday | Leave a comment

SSH port tunneling

Let’s say, a user1 has a ssh connection to the ssh.exampleserver.com, and he would like to view a webpage on intranet server 10.0.0.11 available from exampleserver.
Then command could be like this:

ssh -L 8000:10.0.0.11:80 user1@ssh.exampleserver.com

If using Putty, one would have to do add at Connections/SSH/Tunnels (source port 8000, destination 10.0.0.11:80)

L8000 10.0.0.11:80 

Now user1 can see the webpage in browser at localhost:8000 .

There are nice articles covering this topic, like SSH Tunnel – Local and Remote Port Forwarding Explained with Examples, or SSH Port Tunneling with Putty.

Posted in workday | Leave a comment

Gigasecond

One gigasecond is:
1,000,000,000 seconds
11574.074 days (1 day is 84,600 seconds)
31.688738506811430964562103462971 gregorian years (365.2425 days)

2 Gs = 63.377477013622861929124206925941 gregorian years
3 Gs = 95.066215520434292893686310388913 gregorian years
4 Gs = 126.75495402724572385824841385188 gregorian years

Posted in workday | Leave a comment

Institute for the Future

The Institute for the Future is is a 501(c)3 nonprofit corporation founded in 1968 by a group of former RAND Corporation researchers with a grant from the Ford Foundation to take leading-edge research methodologies into the public and business sectors.
Silicon Valley based IFTF is a source of interesting ideas and information mentioned often in the news.

Posted in workday | Leave a comment