/r/TechnologyTIL

Photograph via snooOG

Post anything new you learn about technology.

Notice: Programming TIL threads go on this subreddit.

/r/TechnologyTIL

139 Subscribers

1

TIL The Origins of Radar

0 Comments
2022/03/21
15:12 UTC

2

TIL Different Computer Speeds

0 Comments
2022/02/15
15:05 UTC

1

TIL How Self-Driving Cars “See”

0 Comments
2022/01/11
15:07 UTC

1

TIL Why a Biohacker Turned His Leg Into A Hotspot

0 Comments
2022/01/11
10:31 UTC

2

This AI Can Clone Any Voice

0 Comments
2022/01/05
22:20 UTC

1

TIL How Fears Of Nuclear War Sparked Cloud Computing

0 Comments
2022/01/05
15:52 UTC

3

TIL Important Inventions In Robotics

0 Comments
2021/12/20
16:59 UTC

3

Technology is an important element

0 Comments
2021/02/19
15:26 UTC

2

What does a computer mouse see?

0 Comments
2020/12/28
10:18 UTC

1

E-Commerce Development Companies in Ireland

0 Comments
2020/09/03
07:16 UTC

1

[Developer] TIL Mac OS X Terminal can concatenate strings with tabs

TIL Mac OS X Terminal may concatenate strings with tabs in them. Python sample code:

>>> data = ["a"] * 100
>>> print "\t".join(data)
a    a    a    a    a    a    a    a    a    a    a
>>> print "\t".join(data)
a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a
>>> print "\t".join(data)
a    a    a    a    a    a    a    a    a    a    a    a    a    a
>>> print "   ".join(data)
a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a
>>> print "   ".join(data)
a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a   a
>>> 

(The output changes as I resized my terminal window)

Even stranger:

>>> data = ["a"] * 25 + ["foobar"] * 10
>>> print "\t".join(data)
a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    a    foobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar
>>> print "\t".join(data)
a    a    a    a    a    a    a    a    a    afoobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar    foobar
>>> 
0 Comments
2016/12/02
20:30 UTC

Back To Top