Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: binary clock from

by hdb (Monsignor)
on Apr 04, 2013 at 09:44 UTC ( #1026959=note: print w/replies, xml ) Need Help??

in reply to binary clock from

Explicit loop and abusing $\ saves a few characters:

# 1 2 3 4 5 #12345678901234567890123456789012345678901234567890123456789 $\+=unpack("%32B*",pack"i3",gmtime$_)for(1..86400);print

Replies are listed 'Best First'.
Re^2: binary clock from
by grizzley (Chaplain) on Apr 05, 2013 at 11:11 UTC
    Parens could be ommited twice:
    # 1 2 3 4 5 #12345678901234567890123456789012345678901234567890123456789 $\+=unpack"%32B*",pack"i3",gmtime$_ for 1..86400;print
    My shortest approach:
    # 1 #123456789012345 print 682560
      which can be further shortened by using perl -d. Also, this version doesn't entail knowing the answer in advance:
      # 24*2*60*(64*3-20)+60*60*(8*2+4*3*3) # =2880*(4*43+5*13) # =2880*237 # 1 2 3 #123456789012345678901234567890123456789 p 8640*79

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026959]
[ambrus]: and try to leave everything else to automated systems without checking how what they write came out format-wise, and for those people, discounting the part about journals with a specific format above,
[ambrus]: just blindly recommending to use LaTeX is a bad idea now.
[Discipulus]: I havery limited needs in such field. Sometimes (for children party invitations) i draw something by hand and I scan it to include into an ms doc.
Discipulus havery can be a good neologism for: have very..;=)
[ambrus]: Discipulus: sure, it's just that, look, some people (including me) have such unreadable and slow handwriting that writing an article or slides by hand would be a very bad idea.
[choroba]: it might bery useful for other verbs, too
[ambrus]: (and I have a need for at least decent formatting too)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-09-26 11:25 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.