ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
orivej has quit [Ping timeout: 265 seconds]
groovy2shoes has quit [Quit: moritura te salutat]
groovy2shoes has joined #picolisp
aw- has joined #picolisp
rob_w has joined #picolisp
Regenaxer has quit [Excess Flood]
mtsd has joined #picolisp
<beneroth> hi all
<aw-> hi bene
<beneroth> hi aw- :)
<aw-> are you using Android ?
<beneroth> using yes. not developing much on it yet.
<aw-> yes that's what i meant
<aw-> i'm trying to use the Calendar app but it requires an account.. not sure why
<aw-> do you have a suggestion? alternative
<beneroth> good question!
<aw-> it's so ridiculous
<beneroth> no I don't have a suggestion, sorry :( I use the calendar on my very outdated android phone, but I think it doesn't need a account there.
<beneroth> yeah
<mtsd> Good morning everyone
<aw-> maybe i'll search on f-droid
<beneroth> either find an alternative (and tell me, would like to install it then for my gf too) or create a fake account. though a fake account used for everything is the same as yours ;)
<beneroth> Good morning mtsd
<beneroth> yeah its a shame that our devices are not ours
<aw-> beneroth: haha yeah, well i dont need my calendar to be sync'd to some unknown cloud servers. It needs to be 100% offline
<aw-> mtsd: hi
<beneroth> aw-, if you don't find any suitable alternative, lets make a pilBox App xD
<aw-> in this case maybe i'll just stick to my paper notepad & pen
<beneroth> ok. let me know if you found a good solution
<aw-> beneroth: ahaha ok you do it and i'll beta test ;)
<beneroth> haha ok. no ETA given xD
<beneroth> until you get it, you will be used so much to your notepad & pen that you don't want to switch ^^
<aw-> oh trust me, i have a notepad & pen already
<aw-> many actually
<aw-> i use them all the time
<mtsd> I second using notepad and pen :)
<mtsd> Favourite tools of mine
<aw-> mtsd: yes, software has failed us once again ;)
<aw-> actually i'm a huge paper otaku.. my notebooks are all from "L!FE" brand, 100 sheets A5 format, Made In Japan.. i think they're ~$15 per notebook, a lot cheaper than Moleskin and i just swap out the leather cover. Unlike Moleskin you just pay for a new leather cover each time you get a new notebook - bad for environment
<mtsd> "L!fe", I did not know about them. I have to look into that brand
<mtsd> Thank you :)
<mtsd> Yes, software has failed us once again ;)
<mtsd> Notebooks to the resque. No batteries running out, no sending what you write to god knows where, haha
<mtsd> No accounts
<mtsd> Yes. I am an old geezer :)
<aw-> mtsd: same here, totally agree
Regenaxer has joined #picolisp
<aw-> also no risk of "data loss".. unless you lose the notebook.. but how easy is that?
<aw-> and you know.. finding things in a paper notebook is easier than any search tool i've ever used
<mtsd> True. A notebook carries a sort of history, a timeline, of your thoughts as well
<mtsd> Interesting to revisit old notes
<aw-> yes, i use colour pens and sticky tabs too to organize
<aw-> not as convenient as an "app", but it's so much better
* beneroth just posted a news link about lobbying to outlaw autonomous killer robots internationally into a telegram group - the chat bot (added for fun) flames me for it
<clacke[m]> :-D
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #picolisp
orivej has joined #picolisp
aw- has quit [Quit: Leaving.]
<cess11> A 'class with a '+Date field and some logic is a good enough calendar for the most part to me. Did time measuring at work that way last year, wrote objects with a few fields and summed up the data to get minimal reports on hours spent on different projects.
<tankf33der> who knows how get Unix time ?
<tankf33der> in seconds from 1 jan 1970
<Regenaxer> Perhaps by calling the Unix 'date' command
<Regenaxer> date +%....
<tankf33der> ok
<Regenaxer> or just make it yourself
<mtsd> date +%s ?
<mtsd> Checking..
<tankf33der> date +%s
<Regenaxer> (- (+ (* 86400 (date)) (time T)) (86400 (date 1970 1 1)))
<Regenaxer> not tested
<Regenaxer> Missing '+' (- (+ (* 86400 (date)) (time T)) (+ 86400 (date 1970 1 1)))
<Regenaxer> -> 63680357499
<Regenaxer> Possibly correct?
<tankf33der> nope
<tankf33der> 1519038212
<beneroth> leap seconds etc?
<beneroth> uh big deviation
<Regenaxer> right
<Regenaxer> hmm, what's wrong then?
<Regenaxer> (except leap seconds - are they in Unix date?)
<tankf33der> golang - 1519048838
<Regenaxer> ah
<Regenaxer> must be * of course
<tankf33der> date +%s - 1519038308
<Regenaxer> : (- (+ (* 86400 (date)) (time T)) (* 86400 (date 1970 1 1)))
<Regenaxer> -> 1519041939
<tankf33der> ok now
<Regenaxer> So no leap seconds?
<Regenaxer> or golang is wrong too
<Regenaxer> Well, it depends on which exact moment we executed this :)
<Regenaxer> How many leap seconds where there since 1970?
<tankf33der> on golang server wrong time itself :)
<tankf33der> classics.
<tankf33der> damn
<Regenaxer> tricky
<Regenaxer> In any case, the above expression is faster than calling date +%s
<Regenaxer> Results are the same:
<Regenaxer> : (list (- (+ (* 86400 (date)) (time T)) (* 86400 (date 1970 1 1))) (in '(date "+%s") (read)))
<Regenaxer> -> (1519042275 1519038675)
<Regenaxer> oops
<Regenaxer> hehe, stupid me!
<Regenaxer> So what is wrong?
<Regenaxer> It is always exactly 1 hour different
<Regenaxer> Probably not leap seconds then
<Regenaxer> UTC?
<Regenaxer> yes:
<Regenaxer> : (list (- (+ (* 86400 (date T)) (time T)) (* 86400 (date 1970 1 1))) (in '(date "+%s") (read)))
<Regenaxer> -> (1519038846 1519038846)
<Regenaxer> So date +%s gives UTC?
<tankf33der> yeap
<tankf33der> %s seconds since 1970-01-01 00:00:00 UTC
<Regenaxer> ok
<beneroth> so no leap seconds in unix date?
<Regenaxer> Seems so
<Regenaxer> Hmm, leap seconds are not counted, right? They will never show up?
<beneroth> there must be somewhere, no? weird.
<beneroth> bbl
<Regenaxer> No, they are inserted in real time
<Regenaxer> as opposed to 29th of Feb
<Regenaxer> leap secons just correct the clocks as I understand them
<Regenaxer> s/correct/adjust
<Regenaxer> Leap *years* are also not "counted". They are just a little longer
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
<tankf33der> seconds i have
<tankf33der> now nanoseconds
<tankf33der> this variations of golang and python version
<Regenaxer> Pil does not support nanoseconds, only microseconds with (usec)
<Regenaxer> Internally I always multiply by 1000
<tankf33der> (list (- (+ (* 86400 (date T)) (time T)) (* 86400 (date 1970 1 1))) (* 1000 (usec T)))
<tankf33der> and convert both numbers to bigendian
<tankf33der> 8+4 = 12 bytes list
rob_w has quit [Quit: Leaving]
orivej has joined #picolisp
orivej has quit [Ping timeout: 248 seconds]
mtsd has quit [Quit: Page closed]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 256 seconds]
alexshendi has joined #picolisp
orivej has joined #picolisp
orivej has quit [Ping timeout: 248 seconds]