1. 10

    My favorite hosting for Phoenix Framework is … Raspberry Pi Zero W. Thanks Nerves Project

    1. 1

      Fun fact : Crackonosh is in Czech pronounce Krakonoš. Mountain spirit of the Krkonoše Mountains and main character in the Czech children’s television series Krkonošské pohádky

      1. 4

        I love this style of interpreting professional topics.

        1. 3

          i love this little steps to bettter code

          1. 1

            Garage doors brought me into the world of IoT. Arduino Ýun was my first device. [Only in Czech] My garage, my castle

            1. 4

              This is cool. I’ve just recently had to learn Make/Makefiles since I’m doing more C development lately, and I really like how flexible it is. And I stumbled on this Elixir/Phoenix forum post where someone uses Make instead of webpack, which feels much cleaner to me. I never realized you can use it for so many random tasks. Maybe I should have known that already, but I guess you live and learn.

              1. 4

                In Erlang universe exists Erlang.mk

              1. 4

                As I’ve also mentioned on the other HTML boilerplate, you don’t need to specify the <html>, <head> and <body> tags as they are implied. I will typically include the <html> tag because it needs a lang attribute, but I won’t close it.

                Omitting these tags reduces the indentation level of the whole document, which in my opinion makes the document more readable for humans.

                1. 3

                  Maybe don’t need. But (for me) more readable.

                  1. 1

                    You’re free to choose not to indent on them and include them anyways.

                  1. 1

                    N900 was not only terminal to server. It was httpd/php server.

                    Best device I ever have.

                      1. 5

                        “Recording My Screen” looks like interesting

                        1. 2

                          It does! I tried it yesterday and it was really interesting to watch back after.

                          I didn’t get any instant insights from it, but it was still very interesting to see. Knowing that I was recording myself also helped me concentrate, which was a nice benefit on the side.

                          1. 2

                            Concentration is a major benefit I’ve seen as well. Also, for me I’d also say it’s harder to go on side tangents. It has a pomodoroish like effects. It could probably flow pretty well in conjunction seeing how I feel a higher cognitive load during recording sessions and need the breaks.

                            I don’t recall the major insight (wish I was taking notes!) I found, but it was at the point I was stuck. Its super weird to be recording yourself while developing and even more awkward when you’re stuck on a problem.

                            I do find that when I’m on camera I do feel a lot of pressure to move fast. When I get stuck, I’ll sometimes pause and poke around to feel less pressure to solve immediately and then figure it out off camera and then summarize my findings when I return to recording. Its tempting to pause a lot during this so I’ll try to talk out loud a bit and ponder for uncomfortably long periods of time in order to take advantage of recording my problem solving on video for insights. Its often cringy watching my self and often I feel silly in retrospect but have found it useful from time to time.

                          2. 2

                            I especially love this when working on side projects that I totally don’t have the time for. I can give the ol’ college try and make a little progress and when I forget about it, I can revisit the project and pick up where I left off sometimes years ago with the proper context. I have recorded about 10 sessions mostly on different projects.

                            I don’t really do in depth analysis or annotations or anything like the author does but I’ll scrub through and watch portions of it and take mental notes and have gained real insights. I think note taking would be awesome to do. The one time that I picked up a project from three years prior and scrubbed through it to figure out what I was thinking (I’ll try to talk through what I can) was priceless.

                            I figure if I were more disciplined, consistent, and put more effort into this process it could be a lot more useful.

                          1. 1

                            As customer i don’t care about language used with development.

                              1. 1

                                nice for learning and trying technologies

                                1. 4

                                  I’m not surprised Kubernetes was slow, it seems comically overkill for a static site.

                                  Though my static website, which I’ve put no effort into optimising beyond setting some cache headers, also gets a score of 100 from Google PageSpeed Insights, and is just running on a single VPS (and in fact does better on some of the metrics). Is the advantage of Vercel that you don’t even need the VPS?

                                  1. 2

                                    For me is it serverless aproach (no pain with VPS administration) and CDN (Edge network)

                                    1. 1

                                      I was only using Kubernetes as impetus to learn more about it, and have fun with it, rather than for performance. It is definitely overkill for a static site!

                                      There’s a few advantages to Vercel:

                                      • Your static site gets replicated to the edge network, so should load quickly regardless of location
                                      • If you want to host serverless functions, you can do that pretty easily
                                      • Astonishingly fast build times
                                      • Zero configuration, you just point it to a GitHub repository, and if you’re using any of the major static site generators, it should just work it out and build it
                                      • It’s mostly free, there’s limits but I’ve never hit them. Rather than paying $5/m for a VPS, you pay nothing
                                    1. 3

                                      Yes, definitely. You learn new paradigma and your career thanks you

                                        1. 1

                                          For sure. Do you have any automation around that to make it quicker? Email is much slower than Airdrop or Universal Clipboard.

                                          1. 1

                                            No. But speed isn’t case for me.

                                            Only one improvement. Use specific email address, for example gmail plus address (segedacz+clipboard@gmail.com)

                                        1. 4

                                          I see no reason to use Raspberry PI Pico instead of the existing Arduino/ESP/…. Users will be confused that Raspberry PI Pico is not Raspberry PI 1/2/3/4/W/…

                                          But yes, they will replenish their portfolio

                                          1. 6

                                            The fact that’s its ARM means it has better support for languages that aren’t C, C++, or Arduino C++. I do agree about the naming though, maybe call it a Raspberry Tart.

                                            1. 7

                                              We’ve had ARM microcontrollers (e.g. STM32-based boards) that were faster and more capable than Arduinos for years now, and my impression is that they haven’t taken off because they don’t have either the Arduino “brand” or the ecosystem. If this is true, then while the Raspberry Pi Pico will have an advantage due to the RPi brand, they won’t have the “real” Raspberry Pi ecosystem becase that runs on Linux (which this thing lacks).

                                              It seems like it’ll be a bit of a challenge for the Pico to gain traction, but I’m rooting for them - I have a bit of a grudge against the Arduino folks for not including debugging in their IDE.

                                              1. 6

                                                Except that Cortex M0+ has effectively a different instruction set to all the Thumb2 Cortex M and Cortex A CPUs. It’s basically ancient Thumb1, with just a handful of 32 bit Thumb2 instructions added. It also doesn’t run the traditional fixed length 32 bit ARMv6 instruction set that all previous Raspberry Pi software has been written for.

                                                Sure, gcc and llvm can target it, but I’d bet money that most of those “languages that aren’t C, C++” with their own compiler or JIT don’t.

                                                1. 1

                                                  Sure, gcc and llvm can target it, but I’d bet money that most of those “languages that aren’t C, C++” with their own compiler or JIT don’t.

                                                  JIT? Maybe not. You could run a JIT written in BBC BASIC on the BBC Model B, but it’s not a great idea. Running a JIT with anything less than 4-8 MiB of RAM is usually a bad idea. Their own compiler? If it’s based on LLVM and is able to target things with such a small amount of memory, I don’t see why not. Things like the LLVM D or Pascal compilers should be able to target this without much effort.

                                                2. 3

                                                  Yeah seconding this. Having a straightforward CPU arch could do wonders for beginner materials (try figuring out the ESP32/Espressif stack for anything that doesn’t go through C/++)

                                                  1. 1

                                                    Espressif licensed the ESP32’s architecture from Tensilica, and as a result the ISA documentation is only available under NDA. That’s kind of a roadblock to implementing new compilers. I’m sure there are reverse-engineered docs on the instruction set, but I would be surprised if they weren’t incomplete and buggy…

                                                  2. 2

                                                    I think those other languages are not worth the trouble. They don’t even hold their advantages in the context of things like bit flipping and very limited resources.

                                                    Which percentage of people uses mocropython, nodemcu, etc instead of just uploading their own firmware written in c? I would guess very low.

                                                    1. 3

                                                      I think this argument can be made for the range of memory Arduino typically targets, (often less than 4kb of ram) but with the Pico’s 264 kb it’s not a very good argument; the benefit of working in a language that actually Has Strings is worth the overhead of a few more kilobytes of space for most use cases.

                                                1. 3

                                                  I expected Elixir for web, but for MCU IoT it was a surprise to me. Give a try to Nerves with your Raspberry PI.

                                                  1. 2

                                                    I had to look this acronym up: MCU = microcontroller unit

                                                    1. 2

                                                      Sorry. Correct (with Raspberry) is SBC = single-board computer. My fault. Thank you

                                                      1. 2

                                                        It looks like there’s a project to run Erlang and Elixir on some MCUs as well: GRiSP.

                                                  1. 3

                                                    wiki.archlinux is my first choice for linux related stuff. Now man.archlinux for man pages

                                                    1. 4

                                                      MQTT is not only for IoT. Some cloud apps use it for communication (Facebook Messanger)

                                                      1. 4

                                                        Absolutely correct! I didn’t want to give the impression that MQTT was only for IOT. Instead, I wanted to show how it can be used by using IOT as an example :)

                                                        Wikipedia explains that MQTT was originally built to monitor oil pipelines!