Threads for daGrevis

    1. 10

      I wrote my first blog post in English last weekend. The plan is to write at least a single post every month from now. Right now I’m really slow and there must be a ton of mistakes, but that’s understandable because this isn’t my native language and I’m just starting. I really hope I will get better with time.

      1. 7

        The English in your post is really good!

        1. 4

          Thanks, that means a lot!

        2. 2

          First off, like @curtis said, your English is great! Secondly, I love your blog’s design. I’ll be looking forward to reading your posts :)

        1. 4

          Really neat domain name!

          1. 15

            I would like to see a screenshots from developers and Lobsters users (2015) thread.

            1. 6

              I can’t speak for everyone, but my screen at work is difficult to take screenshots of because it’s three separate monitors, not rectangular, and more than seven thousand pixels wide. That part, at least, has changed significantly since 2002. =)

              1. 3

                Would you prefer I combine my dwm screens as an animated gif or stitched into a 23k pixel wide png?

                1. 10

                  A 23k pixel wide animated gif preferably.

                2. 2

                  Here are some screenshots of my home laptop, nothing too fancy. Also, yes, I know the screen is 1366x768, I actually don’t mind it too much though when I get a new computer it will have a better screen.

                  Using Firefox with Pentadactyl (thanks @daGrevis for the setup help!). Pentadactyl theme is Gruvbox.

                  Vim with Airline and a bunch of other plugins

                  My desktop (yes, with Unity. It’s actually not that bad)

                  I’m using Guake as my terminal emulator, zsh as shell

                  My .vimrc

                  1. 2

                    This is how my active monitor looks like. Dotfiles are available here!

                    Edit:

                    What you see there is Arch Linux running bspwm as windows manager. Top and bottom bars are lemonbars, populated from Python scripts I wrote (bar_top.py, bar_bottom.py). On the left side there’s Gvim (my .vimrc), but it runs fine without GUI as well. On the right side you see Firefox with Pentadactyl (my .pentadactylrc).

                    Edit #2:

                    Updated screenshots!

                    1. 1

                      Are you running an old version of Firefox? The addon doesn’t seem to be available for 43.0

                      1. 2

                        I’m running the current version of Firefox (41.0.2). For Pentadactyl, you will need to compile it from Github source (and here’s how)…

                        1. 1

                          Thanks! Do you know how to compile it on windows?

                          1. 2

                            You are in luck!

                            While most developers use a Unix-like operating system, you can also build Pentadactyl on Windows with the help of MinGW’s MSYS, Cygwin, or SFU. – http://5digits.org/coding

                            1. 2

                              Thanks so much! I use linux at home but here at work I don’t really have a choice about OS’s :)

                  1. 1

                    This is very interesting and all, but don’t try to guess where the bottleneck is. Always benchmark.

                    1. 18

                      In my opinion, it’s too specific. We don’t have a tag for ClojureScript, there’s not even a tag for Clojure itself.

                      I’m using Lisp for Clojure and, in some cases, Java, because Clojure is run on JVM. I suggest you to use Haskell and maybe JavaScript.

                      1. 1

                        I want to echo this. Also note: Tag’s are for specifically ignoring topics, does purescript warrant enough clout to be ignored?

                        1. 2

                          Helpful feedback. Still getting a feel for the site. Thanks both!

                          1. 1

                            No problem! Welcome! :-)

                      1. 4

                        I like how I can filter out stuff I don’t want to see. Simple, but powerful idea.

                        1. 1

                          Sorry, but I couldn’t tag this better. How about tag for machine learning or simply algorithms?

                          1. 1

                            There’s compsci I could have used. Don’t know how I missed it.

                          1. 1

                            dead link? or lobsters-effect? :)

                            1. 2

                              Seems to be working now for me, as of this morning.

                              1. 1

                                It’s down for me too. Fortunately, there’s source on GitHub.

                                1. 1

                                  I saw a discussion on reddit where the author stated he didn’t want this exposed yet. He may have taken it down in response. As mentioned by @daGrevis, the sources can be found on GitHub though.

                                1. 2

                                  My co-worker is asking, why just not use normal compiler?

                                  Edit:

                                  Scripts are slightly simpler than standard C programs - all the system headers are included automatically for you so you don’t need to include them yourself. Also, scripts don’t have a main() function - they just have statements which are run directly.

                                  1. 4

                                    I originally wrote it because I wanted to edit and run scripts on a tiny device with only 64k of RAM (an STM32 microcontroller). It turned out to be handy for other situations too - like when you want to add a simple scripting language to a C program and you don’t want to put in an entire compiler just for that.

                                  1. 1

                                    That may be true for Ubuntu, Fedora or any other mainstream distros that aim to be user friendly (I have had this experience with couple of Ubuntu servers and co-worker’s computer [Ubuntu] really doesn’t work that great anymore), but it’s not necessary true for Arch Linux, Gentoo or any other distro in which you have full control of what is happening. Of course, it comes with cost of need to have some knowledge about what are you doing.

                                    1. 2

                                      Would it be fair to say that Flask is roughly equivalent to Sinatra, only in Python instead of Ruby?

                                      1. 3

                                        I’ve only done a tiny bit of playing with Sinatra, but I’d say that it’s an apt comparison. From my vague recollection of Sinatra I’d say it’s slightly more micro than flask.

                                        1. 1

                                          What do you mean? What’s there so heavy about Flask?

                                        2. 1

                                          Would it be fair to say that Flask is roughly equivalent to Sinatra, only in Python instead of Ruby?

                                          Yes.

                                          Except that, while in the Ruby world, Rails is the number one (only?) choice, the Python world is more fragmented. I won’t say if this is a good or bad thing. I personally prefer Flask.

                                          I bought the book when it came out. It is more useful for people who already know some Flask, as it teaches best practices (a bit like 2 scoops of Django).

                                        1. 1

                                          This is a neat hack, but sadly it won’t work for cases when author hasn’t commited anything to your repo. Like when you have used some 3rd-party library and specified it as dependency.

                                          1. 9

                                            I wouldn’t mind about Perl, but I would dislike Perl 6 — it’s too specific. Like we have Lisp tag here on Lobsters, but do we really need Common Lisp, Scheme, Clojure, Racket etc. tags?

                                            1. 2

                                              Actually.. maybe? If we start getting a ton of links about Clojure, it probably will need its own tag or something.

                                              Using “Lisp” for Clojure it’s like using “Java” for Javascript links because they look alike.

                                              1. 9

                                                Not really – the term “Lisp” denotes a whole family of programming languages with Clojure, as a dialect of Lisp, being one of them. Clojure does have its specifics, but so does Common Lisp when compared to Scheme, yet it wouldn’t be wrong to tag an article about R7RS with “Lisp”.

                                                JavaScript, on the other hand, is nowhere near being a “dialect” of Java.

                                                1. 2

                                                  If we start getting a ton of links about Clojure, it probably will need its own tag or something.

                                                  I think that’s perfectly reasonable. Err on the side of generality, and if it turns out more specific tags are needed as something gets more popular, then Lobsters could add them.

                                              1. 1

                                                I did it and it was a great experience! I highly encourage you to try it! https://github.com/daGrevis/diy-lisp

                                                1. 4

                                                  There are a couple of apps which locally encrypt your passwords and then back it up in the location of your choice (iCloud / Dropbox) etc but they cost something like $50.

                                                  There are apps that are free. For example, I’m using zx2c4’s pass.

                                                  It takes advantage of GPG and allows to save passwords locally and on Git. Also it’s possible to sync using Dropbox just by using symlink.

                                                  To generate passwords, I use pwgen. It has command arguments (I’m using --ambiguous --capitalize --numerals --symbols 16) to make password more human-readable for easier typing into, in my case, mobile phone.

                                                  Because each password is a file, I can easily see how long I haven’t changed password for particular file. Also, I can use tools like dmenu to have menu of passwords just before it prompts for a master password.

                                                  1. 8

                                                    Yesterday I published Hendrix, p2p chat for web. It’s build on some cool, new technologies like PeerJS (WebRTC) and React (Shadown DOM). It’s an attempt to create IRC for web that’s as server-less as possible. I would like to hear what do you think and a star would be great!

                                                    Currently I’m planning to add things like:

                                                    • Group chat and rooms/channels,
                                                    • Authentication (I’m thinking PGP);
                                                    1. 2

                                                      so how easy is peer-to-peer in browsers now? a while (a few years i guess) back when opengl becamme available in browsers i started writing an “arcade” game that would run in browsers and allow people to fly around the surface of a planet shooting each other. it didn’t get very far (i am not an experienced 3d programmer), but it was clear the p2p part was not going to be ready any time soon anyway… is that now “trivial”?

                                                      1. 2

                                                        I can’t comment on how it has changed in past years because I’m new to the WebRTC myself and this is my first attempt to make something with it. However, PeerJS (WebRTC wrapper) helps and it’s a matter of listening and triggering events that PeerJS offers.

                                                      2. 1

                                                        this looks great! I’ve been working on a leisure project similar to this one, only not web based. I’d be happy to share my ideas or designs with you, if you wish.

                                                        I can’t seem to get it up and running, though. would you consider adding some instructions into the README file so other people know how to get this booted up?

                                                        thanks, and good luck!

                                                        1. 1

                                                          Thanks! I would like to hear your thoughts on Hendrix.

                                                          I added some instructions to the repo! ;)

                                                        2. 1

                                                          Great project! Would love to see live demo :)

                                                          1. 1

                                                            Thanks!

                                                            I’ve been trying to implement group chat now. As soon as it’s ready, I will create a demo page! ;)

                                                            1. 1

                                                              I will be waiting for that. Meanwhile I hope that there will be time to try it on my own.

                                                          2. 1

                                                            I love the project. We need to bring internet tech back to a distributed model from which it came from. I am also excited about WebRTC. Have a look at my project Fire★, I had to implement something like WebRTC from scratch. Though mine is built from C++ and not web tech.

                                                            If you see any awesome idea from Fire★, go ahead and clone. We need more p2p to take off.

                                                            1. 1

                                                              Looks like a cool project :) You might also be interested in https://echoplex.us. I’m using PGP to sign/encrypt messages, which I think works pretty well for identity in an anonymous environment

                                                            1. 3

                                                              Useful, but I’m afraid that I will forget about these links. It would be nice if someone could add them to top menu.

                                                              Even better, “Top Stories“ section with possibility to filter by time period.

                                                              1. 1

                                                                Really interesting and I’m glad that there now are other possibilities instead of only PyPy.

                                                                I wonder why they chose to target Python2 instead of Python3 or both versions. In theory, if Python3 will be successful and take off, by the time Pyston will be production-ready, Python2 will be obsolete.

                                                                1. 2
                                                                  1. 2

                                                                    Now with V8 JavaScript I think everyone should switch from C to JS even if you are programming for embbeded devices. Obviously V8 JS is so fast you’ll never notice the difference! /Scarcasm

                                                                    In all serious knew I think they are poking fun at a very real mistake some devs make when they make silly decisions due to their attachement/love of a particular framework or language that is ill suited for the purpose, e.g. using NodeJS for static file hosting or blog rolling.

                                                                    A good programmer once told me that you should use the framework and languages are just tools, and you should only use the right tool for the right job.