*** spiiroin has quit IRC | 00:06 | |
*** spiiroin has joined #maemo | 00:07 | |
*** rhn has quit IRC | 00:08 | |
*** jkepler has quit IRC | 00:18 | |
*** cyteen has quit IRC | 00:58 | |
*** xy2_ has quit IRC | 00:59 | |
*** xorly has quit IRC | 01:05 | |
*** blap_ is now known as blap | 01:07 | |
*** r00t^home has joined #maemo | 01:44 | |
*** florian has quit IRC | 01:50 | |
*** LjL has quit IRC | 02:10 | |
*** drathir has quit IRC | 02:14 | |
*** LjL has joined #maemo | 02:17 | |
*** LjL has quit IRC | 02:23 | |
*** pagurus has joined #maemo | 02:28 | |
*** pagurus` has quit IRC | 02:30 | |
*** drathir has joined #maemo | 02:30 | |
*** LjL has joined #maemo | 02:32 | |
*** luke-jr has quit IRC | 02:50 | |
*** luke-jr has joined #maemo | 02:53 | |
*** atk has quit IRC | 03:00 | |
*** geaaru has quit IRC | 03:00 | |
*** atk has joined #maemo | 03:00 | |
*** Kabouik- has joined #maemo | 03:24 | |
*** Kabouik_ has quit IRC | 03:26 | |
*** Kabouik has joined #maemo | 03:42 | |
*** dafox has quit IRC | 04:25 | |
*** Kabouik has quit IRC | 04:59 | |
*** Kabouik- has quit IRC | 05:01 | |
*** herekun has quit IRC | 06:31 | |
Vajb | not 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 #maemo | 06:52 | |
*** err0r3o3_ has quit IRC | 06:54 | |
*** err0r3o3_ has joined #maemo | 06:54 | |
Oksana | if {answer != "y"} || {"n"}, I would guess | 07:23 |
Oksana | Aka, "n" is always true | 07:23 |
Oksana | But, I am not sure what ")" stands for in your example | 07:23 |
Vajb | oh i mistyped. It was supposed to be (answer.... | 07:28 |
Vajb | so it is just closing ) | 07:29 |
*** LjL has quit IRC | 07:33 | |
*** LjL has joined #maemo | 07:34 | |
Oksana | Either 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 time | 07:43 | |
*** sparetire has quit IRC | 07:46 | |
*** sparetire has joined #maemo | 07:47 | |
*** jskarvad has joined #maemo | 07:56 | |
*** jskarvad has quit IRC | 07:56 | |
*** jskarvad has joined #maemo | 07:56 | |
*** spiiroin has quit IRC | 07:57 | |
Vajb | let me try what happens | 07:59 |
Vajb | same problem as from the start | 08:02 |
Vajb | it just triggers no matter the letter and doesn't move to else even if letter is y or n | 08:02 |
Vajb | sigh i give up and clean my house instead | 08:03 |
Oksana | Is it possible in your script to print out values of answer, answer != "y", answer = "y", and others? | 08:03 |
Vajb | i wouldn't know. Im just taking my first steps on programming :) | 08:04 |
Vajb | they want us to learn typescript | 08:04 |
blap | is Lisp/Scheme also on the menu someday Vajb? | 08:06 |
Vajb | i don't know haven't check next courses | 08:07 |
blap | scheme got me thinking in new ways | 08:09 |
* Oksana has heard that Smalltalk is one of the most liked programming languages | 08:09 | |
blap | the syntax though ugh | 08:09 |
Vajb | i kinda like typescript so far, but i don't like to fail no matter what | 08:30 |
Vajb | and now im failing no matter what i try | 08:30 |
Vajb | to 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 |
Vajb | sounds simple enough, but i don't seem to make it | 08:35 |
KotCzarny | in bash i simply use: read ans; if [ "$ans" = "y" -o "$ans" = "Y" ]; then echo yes; else echo no; fi | 08:47 |
KotCzarny | never touched scheme | 08:48 |
*** Pali has quit IRC | 08:52 | |
*** spiiroin has joined #maemo | 08:52 | |
*** xy2_ has joined #maemo | 08:55 | |
*** Pali has joined #maemo | 09:00 | |
*** auenf has quit IRC | 09:08 | |
*** auenf has joined #maemo | 09:08 | |
*** xy2_ has quit IRC | 09:09 | |
*** rhn has joined #maemo | 09:19 | |
*** rhn has joined #maemo | 09:19 | |
*** xorly has joined #maemo | 09:35 | |
*** Pali has quit IRC | 09:35 | |
*** dmth|intevation has joined #maemo | 09:37 | |
*** Pali has joined #maemo | 09:51 | |
*** Pali has quit IRC | 10:16 | |
*** jkepler has joined #maemo | 10:17 | |
*** florian has joined #maemo | 10:35 | |
*** nslu2-log has quit IRC | 10:46 | |
*** geaaru has joined #maemo | 10:47 | |
*** jskarvad has quit IRC | 10:49 | |
*** Kabouik has joined #maemo | 10:50 | |
*** Kabouik has joined #maemo | 10:51 | |
*** mike727 has joined #maemo | 10:51 | |
*** rhn has quit IRC | 10:55 | |
*** xorly has quit IRC | 10:57 | |
*** jonwil has joined #maemo | 10:58 | |
*** jkepler has quit IRC | 11:00 | |
*** jkepler has joined #maemo | 11:01 | |
*** nslu2-log has joined #maemo | 11:08 | |
*** louisdk has joined #maemo | 11:08 | |
*** louisdk has quit IRC | 11:19 | |
*** jskarvad has joined #maemo | 11:50 | |
*** jskarvad has quit IRC | 11:50 | |
*** jskarvad has joined #maemo | 11:50 | |
Vajb | KotCzarny: tried to translate that to typescript, didn't work :) | 11:53 |
Vajb | I'll figure it out eventually. | 11:53 |
*** jonwil has quit IRC | 12:09 | |
blap | cool, i can copy a random set of music or podcasts to my phone SD card | 12:15 |
blap | ls |sort -R |tail -$1 |while read file; do cp -v $file $2; done | 12:15 |
*** xorly has joined #maemo | 12:21 | |
*** Kabouik has quit IRC | 12:27 | |
*** Kabouik has joined #maemo | 12:28 | |
*** drcode has joined #maemo | 12:42 | |
*** Cor-Ai has quit IRC | 13:17 | |
*** pcfe has quit IRC | 13:25 | |
*** pcfe has joined #maemo | 13:25 | |
*** pcfe has quit IRC | 13:25 | |
*** pcfe has joined #maemo | 13:25 | |
*** blap has quit IRC | 13:37 | |
*** blap has joined #maemo | 13:41 | |
Maxdamantus | if(["y", "n"].indexOf(answer) != -1) | 13:53 |
Maxdamantus | Should work in TypeScript. | 13:53 |
KotCzarny | what about upper case? | 13:53 |
Maxdamantus | if(["y", "n"].indexOf(answer.toLowerCase()) != -1) | 13:54 |
Maxdamantus | TypeScript seems like a bad language to be taught as an introductory language. | 13:57 |
Maxdamantus | It 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 |
Maxdamantus | due to its unsoundness WRT structural subtyping (assumes covariance of data structures), and its use of `any` typing, etc | 14:00 |
Maxdamantus | and 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 |
Maxdamantus | I 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 IRC | 14:29 | |
*** blap has quit IRC | 15:16 | |
*** blap has joined #maemo | 15:17 | |
*** jskarvad has joined #maemo | 15:21 | |
*** jskarvad has quit IRC | 15:21 | |
*** jskarvad has joined #maemo | 15:21 | |
*** spiiroin has quit IRC | 15:25 | |
*** DocScrutinizer05 has quit IRC | 15:44 | |
*** DocScrutinizer06 has joined #maemo | 15:44 | |
*** DocScrutinizer06 is now known as DocScrutinizer05 | 15:45 | |
*** DocScrutinizer05 has quit IRC | 16:00 | |
*** DocScrutinizer05 has joined #maemo | 16:00 | |
*** xy2_ has joined #maemo | 16:21 | |
*** spiiroin has joined #maemo | 16:29 | |
*** dafox has joined #maemo | 16:44 | |
*** jskarvad has quit IRC | 17:04 | |
*** dmth|intevation has quit IRC | 17:20 | |
*** xorly has quit IRC | 17:41 | |
*** blap has quit IRC | 17:46 | |
*** jskarvad has joined #maemo | 17:50 | |
*** jskarvad has quit IRC | 17:50 | |
*** jskarvad has joined #maemo | 17:50 | |
*** Kabouik has quit IRC | 18:10 | |
*** Kabouik has joined #maemo | 18:13 | |
*** DocScrutinizer05 has quit IRC | 18:25 | |
*** DocScrutinizer05 has joined #maemo | 18:25 | |
*** jskarvad has quit IRC | 18:37 | |
*** cyteen has joined #maemo | 18:39 | |
*** Vajb has quit IRC | 18:43 | |
*** Vajb has joined #maemo | 18:45 | |
*** NeKit has quit IRC | 18:47 | |
*** Vajb has quit IRC | 18:59 | |
*** florian has quit IRC | 19:02 | |
*** xorly has joined #maemo | 19:13 | |
*** NeKit has joined #maemo | 19:15 | |
*** Vajb has joined #maemo | 19:16 | |
*** xorly has quit IRC | 19:20 | |
*** mike727 has quit IRC | 19:21 | |
*** jskarvad has joined #maemo | 19:23 | |
*** jskarvad has quit IRC | 19:23 | |
*** jskarvad has joined #maemo | 19:23 | |
*** cyteen has quit IRC | 19:32 | |
*** jskarvad has quit IRC | 19:38 | |
*** florian has joined #maemo | 19:41 | |
*** xorly has joined #maemo | 19:55 | |
*** tm has quit IRC | 19:59 | |
*** jskarvad has joined #maemo | 20:03 | |
*** jskarvad has quit IRC | 20:03 | |
*** jskarvad has joined #maemo | 20:03 | |
*** Kabouik_ has joined #maemo | 20:04 | |
*** Kabouik has quit IRC | 20:06 | |
*** tm has joined #maemo | 20:11 | |
*** louisdk has joined #maemo | 20:30 | |
*** xorly has quit IRC | 20:30 | |
*** rhn has joined #maemo | 20:30 | |
*** zama has joined #maemo | 20:32 | |
*** Kabouik_ has quit IRC | 20:36 | |
*** Kabouik_ has joined #maemo | 20:36 | |
*** err0r3o3_ has quit IRC | 20:45 | |
*** Kabouik_ has quit IRC | 20:49 | |
*** tm has quit IRC | 21:06 | |
*** Kabouik has joined #maemo | 21:10 | |
*** Kabouik_ has joined #maemo | 21:12 | |
*** Kabouik has quit IRC | 21:15 | |
*** jskarvad has quit IRC | 21:18 | |
*** tm has joined #maemo | 21:25 | |
*** geaaru has quit IRC | 21:26 | |
*** DocScrutinizer05 has quit IRC | 21:29 | |
*** DocScrutinizer05 has joined #maemo | 21:30 | |
*** cyteen has joined #maemo | 21:40 | |
*** louisdk has quit IRC | 21:48 | |
*** Kabouik- has joined #maemo | 22:50 | |
*** Kabouik_ has quit IRC | 22:53 | |
*** Kabouik- has quit IRC | 22:55 | |
*** Kabouik has joined #maemo | 22:55 | |
*** Kabouik has joined #maemo | 22:56 | |
*** rhn has quit IRC | 22:59 | |
*** jkepler has quit IRC | 23:02 | |
*** Wikiwide has joined #maemo | 23:25 | |
Wikiwide | Feature request for camera: using an image as semi-transparent overlay while shooting a photograph. | 23:26 |
Wikiwide | Usecase: 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 #maemo | 23:34 | |
KotCzarny | it's easier to be done in postprocess | 23:34 |
KotCzarny | ie. in software after | 23:34 |
KotCzarny | just requires some key points in the scene to be permanenet | 23:35 |
KotCzarny | *permanent | 23:35 |
Wikiwide | Sure, but post-processing implies that the images will have to be cropped at least. | 23:36 |
Wikiwide | Pre-processing allows to make sure that all angles and distances are correct. | 23:36 |
KotCzarny | assuming your onion image is similar enough in the angles, distance etc | 23:37 |
Wikiwide | Because 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 functionality | 23:43 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!