IRC log of #maemo for Monday, 2017-09-18

*** spiiroin has quit IRC00:06
*** spiiroin has joined #maemo00:07
*** rhn has quit IRC00:08
*** jkepler has quit IRC00:18
*** cyteen has quit IRC00:58
*** xy2_ has quit IRC00:59
*** xorly has quit IRC01:05
*** blap_ is now known as blap01:07
*** r00t^home has joined #maemo01:44
*** florian has quit IRC01:50
*** LjL has quit IRC02:10
*** drathir has quit IRC02:14
*** LjL has joined #maemo02:17
*** LjL has quit IRC02:23
*** pagurus has joined #maemo02:28
*** pagurus` has quit IRC02:30
*** drathir has joined #maemo02:30
*** LjL has joined #maemo02:32
*** luke-jr has quit IRC02:50
*** luke-jr has joined #maemo02:53
*** atk has quit IRC03:00
*** geaaru has quit IRC03:00
*** atk has joined #maemo03:00
*** Kabouik- has joined #maemo03:24
*** Kabouik_ has quit IRC03:26
*** Kabouik has joined #maemo03:42
*** dafox has quit IRC04:25
*** Kabouik has quit IRC04:59
*** Kabouik- has quit IRC05:01
*** herekun has quit IRC06:31
Vajbnot exactly a maemo question, but whats wrong in this syntax? "if answer != "y" || "n")" It works, but not they way i wanted. I wanted it to trigger if answer is not y or n, but now it triggers at any input and i can't wrap my head around it.06:50
*** err0r3o3_ has joined #maemo06:52
*** err0r3o3_ has quit IRC06:54
*** err0r3o3_ has joined #maemo06:54
Oksana if {answer != "y"} || {"n"}, I would guess07:23
OksanaAka, "n" is always true07:23
OksanaBut, I am not sure what ")" stands for in your example07:23
Vajboh i mistyped. It was supposed to be (answer....07:28
Vajbso it is just closing )07:29
*** LjL has quit IRC07:33
*** LjL has joined #maemo07:34
OksanaEither way, my argument still holds. What would happen with this? (if answer != "y" && answer != "n")07:42
* Oksana expects that || means or and && signifies and, but haven't tried scripts for a long time07:43
*** sparetire has quit IRC07:46
*** sparetire has joined #maemo07:47
*** jskarvad has joined #maemo07:56
*** jskarvad has quit IRC07:56
*** jskarvad has joined #maemo07:56
*** spiiroin has quit IRC07:57
Vajblet me try what happens07:59
Vajbsame problem as from the start08:02
Vajbit just triggers no matter the letter and doesn't move to else even if letter is y or n08:02
Vajbsigh i give up and clean my house instead08:03
OksanaIs it possible in your script to print out values of answer, answer != "y", answer = "y", and others?08:03
Vajbi wouldn't know. Im just taking my first steps on programming :)08:04
Vajbthey want us to learn typescript08:04
blapis Lisp/Scheme also on the menu someday Vajb?08:06
Vajbi don't know haven't check next courses08:07
blapscheme got me thinking in new ways08:09
* Oksana has heard that Smalltalk is one of the most liked programming languages08:09
blapthe syntax though ugh08:09
Vajbi kinda like typescript so far, but i don't like to fail no matter what08:30
Vajband now im failing no matter what i try08:30
Vajbto be exact. I wanna make script that asks y or n and answers accordingly. If i use any other character than y or n it gives error.08:34
Vajbsounds simple enough, but i don't seem to make it08:35
KotCzarnyin bash i simply use: read ans; if [ "$ans" = "y" -o "$ans" = "Y" ]; then echo yes; else echo no; fi08:47
KotCzarnynever touched scheme08:48
*** Pali has quit IRC08:52
*** spiiroin has joined #maemo08:52
*** xy2_ has joined #maemo08:55
*** Pali has joined #maemo09:00
*** auenf has quit IRC09:08
*** auenf has joined #maemo09:08
*** xy2_ has quit IRC09:09
*** rhn has joined #maemo09:19
*** rhn has joined #maemo09:19
*** xorly has joined #maemo09:35
*** Pali has quit IRC09:35
*** dmth|intevation has joined #maemo09:37
*** Pali has joined #maemo09:51
*** Pali has quit IRC10:16
*** jkepler has joined #maemo10:17
*** florian has joined #maemo10:35
*** nslu2-log has quit IRC10:46
*** geaaru has joined #maemo10:47
*** jskarvad has quit IRC10:49
*** Kabouik has joined #maemo10:50
*** Kabouik has joined #maemo10:51
*** mike727 has joined #maemo10:51
*** rhn has quit IRC10:55
*** xorly has quit IRC10:57
*** jonwil has joined #maemo10:58
*** jkepler has quit IRC11:00
*** jkepler has joined #maemo11:01
*** nslu2-log has joined #maemo11:08
*** louisdk has joined #maemo11:08
*** louisdk has quit IRC11:19
*** jskarvad has joined #maemo11:50
*** jskarvad has quit IRC11:50
*** jskarvad has joined #maemo11:50
VajbKotCzarny: tried to translate that to typescript, didn't work :)11:53
VajbI'll figure it out eventually.11:53
*** jonwil has quit IRC12:09
blapcool, i can copy a random set of music or podcasts to my phone SD card12:15
blapls |sort -R |tail -$1 |while read file; do cp -v $file $2; done12:15
*** xorly has joined #maemo12:21
*** Kabouik has quit IRC12:27
*** Kabouik has joined #maemo12:28
*** drcode has joined #maemo12:42
*** Cor-Ai has quit IRC13:17
*** pcfe has quit IRC13:25
*** pcfe has joined #maemo13:25
*** pcfe has quit IRC13:25
*** pcfe has joined #maemo13:25
*** blap has quit IRC13:37
*** blap has joined #maemo13:41
Maxdamantusif(["y", "n"].indexOf(answer) != -1)13:53
MaxdamantusShould work in TypeScript.13:53
KotCzarnywhat about upper case?13:53
Maxdamantusif(["y", "n"].indexOf(answer.toLowerCase()) != -1)13:54
MaxdamantusTypeScript seems like a bad language to be taught as an introductory language.13:57
MaxdamantusIt has a static type system, but it relies on fairly careful reasoning to ensure your code is actually well-typed (given that it compiles)13:59
Maxdamantusdue to its unsoundness WRT structural subtyping (assumes covariance of data structures), and its use of `any` typing, etc14:00
Maxdamantusand when you actually do have type errors, they're not even caught at runtime, unless they happen to be real ECMAScript type errors (in which case `TypeError`s will be thrown)14:01
MaxdamantusI see it as a language that acts as a pretty good workaround for the lack of type safety in ES, not as something that would be optimal to learn to understand something about programming or type theory.14:03
*** jskarvad has quit IRC14:29
*** blap has quit IRC15:16
*** blap has joined #maemo15:17
*** jskarvad has joined #maemo15:21
*** jskarvad has quit IRC15:21
*** jskarvad has joined #maemo15:21
*** spiiroin has quit IRC15:25
*** DocScrutinizer05 has quit IRC15:44
*** DocScrutinizer06 has joined #maemo15:44
*** DocScrutinizer06 is now known as DocScrutinizer0515:45
*** DocScrutinizer05 has quit IRC16:00
*** DocScrutinizer05 has joined #maemo16:00
*** xy2_ has joined #maemo16:21
*** spiiroin has joined #maemo16:29
*** dafox has joined #maemo16:44
*** jskarvad has quit IRC17:04
*** dmth|intevation has quit IRC17:20
*** xorly has quit IRC17:41
*** blap has quit IRC17:46
*** jskarvad has joined #maemo17:50
*** jskarvad has quit IRC17:50
*** jskarvad has joined #maemo17:50
*** Kabouik has quit IRC18:10
*** Kabouik has joined #maemo18:13
*** DocScrutinizer05 has quit IRC18:25
*** DocScrutinizer05 has joined #maemo18:25
*** jskarvad has quit IRC18:37
*** cyteen has joined #maemo18:39
*** Vajb has quit IRC18:43
*** Vajb has joined #maemo18:45
*** NeKit has quit IRC18:47
*** Vajb has quit IRC18:59
*** florian has quit IRC19:02
*** xorly has joined #maemo19:13
*** NeKit has joined #maemo19:15
*** Vajb has joined #maemo19:16
*** xorly has quit IRC19:20
*** mike727 has quit IRC19:21
*** jskarvad has joined #maemo19:23
*** jskarvad has quit IRC19:23
*** jskarvad has joined #maemo19:23
*** cyteen has quit IRC19:32
*** jskarvad has quit IRC19:38
*** florian has joined #maemo19:41
*** xorly has joined #maemo19:55
*** tm has quit IRC19:59
*** jskarvad has joined #maemo20:03
*** jskarvad has quit IRC20:03
*** jskarvad has joined #maemo20:03
*** Kabouik_ has joined #maemo20:04
*** Kabouik has quit IRC20:06
*** tm has joined #maemo20:11
*** louisdk has joined #maemo20:30
*** xorly has quit IRC20:30
*** rhn has joined #maemo20:30
*** zama has joined #maemo20:32
*** Kabouik_ has quit IRC20:36
*** Kabouik_ has joined #maemo20:36
*** err0r3o3_ has quit IRC20:45
*** Kabouik_ has quit IRC20:49
*** tm has quit IRC21:06
*** Kabouik has joined #maemo21:10
*** Kabouik_ has joined #maemo21:12
*** Kabouik has quit IRC21:15
*** jskarvad has quit IRC21:18
*** tm has joined #maemo21:25
*** geaaru has quit IRC21:26
*** DocScrutinizer05 has quit IRC21:29
*** DocScrutinizer05 has joined #maemo21:30
*** cyteen has joined #maemo21:40
*** louisdk has quit IRC21:48
*** Kabouik- has joined #maemo22:50
*** Kabouik_ has quit IRC22:53
*** Kabouik- has quit IRC22:55
*** Kabouik has joined #maemo22:55
*** Kabouik has joined #maemo22:56
*** rhn has quit IRC22:59
*** jkepler has quit IRC23:02
*** Wikiwide has joined #maemo23:25
WikiwideFeature request for camera: using an image as semi-transparent overlay while shooting a photograph.23:26
WikiwideUsecase: creating time lapse sequences of photographs. Such an overlay would make it easier to avoid movement of camera from one day to another.23:27
*** LauRoman has joined #maemo23:34
KotCzarnyit's easier to be done in postprocess23:34
KotCzarnyie. in software after23:34
KotCzarnyjust requires some key points in the scene to be permanenet23:35
KotCzarny*permanent23:35
WikiwideSure, but post-processing implies that the images will have to be cropped at least.23:36
WikiwidePre-processing allows to make sure that all angles and distances are correct.23:36
KotCzarnyassuming your onion image is similar enough in the angles, distance etc23:37
WikiwideBecause not everybody is going to have a tripod mount sitting to specify where the photographing should take place.23:37
Wikiwide/me is probably too picky; hoped that gstreamer has such a image-overlay-over-camera-stream functionality23:43

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!