Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fayesafe

Pages: [1]
1
Found it on the Webs / Re: youtube-dl - A Command Line YouTube Downloader
« on: November 02, 2015, 10:54:24 pm »
That lib is really awesome! I used it a couple of times in my own Python scripts as well as a command line tool. What makes it great is that it's not just able to download any Youtube video, but also has the capability to almost leech videos from any other embedded player. Just give it the url of a webpage and it downloads the video!

2
General discussion / Re: Computer books
« on: November 02, 2015, 05:21:17 pm »
A good read is always 'Just for Fun', the 'biography' of Linux and/or Linus Torvalds, explaining the development of our all-time-favorite operating system. I really liked the way it's written, because it is almost as if he talks to you.

Another good read - even though it's not strictly computer related - is 'Fermat's last theorem' by Simon Singh which is about the proof of Fermat's conjecture. It is very well written and understandable even with only a little knowledge of number theory / math in general.

3
Found it on the Webs / Re: Twitch Installs Arch Linux
« on: November 02, 2015, 05:15:15 pm »
Wow it actually works way better than i expected... :D

... until they 'system_reset' and start all over again  ;D

4
Found it on the Webs / Re: xonsh shell
« on: October 27, 2015, 12:34:00 am »
Looks nice on first view, even though it's probably not POSIX. Anyways, have you tried using it? How does it feel compared to bash, ksh etc? If you have some experience, you might consider posting to the Unix-Tools-Thread:
https://evilzone.org/operating-system/linuxbsd*nix-tool-thread/

5
Beginner's Corner / Re: Looking for the best programming language?
« on: October 26, 2015, 09:10:42 pm »

6
Found it on the Webs / Lobste.rs
« on: October 23, 2015, 06:21:06 pm »
If you are just like me and lurk the interwebs all the time, you probably know reddit, voat and hackernews and the likes. One fairly new network is https://lobste.rs/. It has some interesting links and articles. You can read without any registration, but that's needed if you want to contribute to discussions. Registrations only work by invitations, that's what keeps the community pretty small but on the other hand it ensures an overall high quality.
I highly recommend a visit.

https://lobste.rs/about

7
Creative Arts / Re: What's your favorite font?
« on: October 20, 2015, 05:45:21 pm »
I have always been a fan of Gohufont (http://font.gohu.org/) since I really like the way it looks and feels when coding.

8
Operating System / Re: Linux/BSD/*nix tool thread.
« on: October 20, 2015, 02:15:35 pm »
I want to hint on (almost) everything that suckless released. They are doing a good job by creating simple tools that are hackable and -as the name suggests- suck less. ST (http://st.suckless.org/) for example is a terminal written in c, that can be easily used and gives  some insights on how theses programs work.
Furthermore, 9menu and dmenu are great tools to use with only a window manager or if you are creating your own desktop environment. They are part of the suckless tool collection (http://tools.suckless.org/).
Last but not least, dwm is a simple and easy-to-use window manager that is dynamic (meaning it supports both, tiling and floating windows). (http://dwm.suckless.org/)

Their philosophy (http://suckless.org/philosophy) and their style guidlines (http://suckless.org/coding_style) are interesting as well.

9
Scripting Languages / Re: Major Diff between python3 and python2
« on: October 18, 2015, 10:48:46 am »
I think one of the biggest diffs now is that strings are unicode and not ascii anymore. Also modules are cached when imported, which can kinda mess you up when your searching directories.

Here is python 2to3 and 3to2 which helps automate converting between the two.

https://docs.python.org/3.0/library/2to3.html

https://pypi.python.org/pypi/3to2/1.1.1

Talking about Strings now being unicode, is there any way to avoid/prevent this? I was recently working with files that were encoded with base64 and the base64-functionality in python needs binary String as input. So I needed to first encode the unicode-String to ascii and then decode it with base64. I did not find anything about this topic on the interwebs, so maybe someone has a hint.

10
If you are looking for music for concentration, try giving game music a try. I have been a big fan of it and it helps my to stay focused while programming. I really like the Skyrim soundtrack (even thought some of the songs have vocals) and stuff like pokemon. You might not regret giving it a try.

11
General discussion / Re: Best os for someone new to Linux?
« on: October 16, 2015, 06:22:07 pm »
Because those questions are well documented , learn to read or die.

That's true, but I also wanted to say that in forums for ubuntu / mint and the likes, people are much more forgiving towards beginner question or stupid questions than they are in others. Also, using an advanced distro needs much more self-administrated.

12
General discussion / Re: Best os for someone new to Linux?
« on: October 16, 2015, 06:08:30 pm »
To be honest, I do not think it matters, with what distro you start out when using linux. Everything that matters is your own will to commitment, and if you want to start with arch / gentoo / crux or the similar 'more advanced distros' it is fine. But then, you need to accept the fact, that this will lead to a much steeper learning curve that you would have gotten with ubuntu or mint. I got the impression that a lot of people are much more unwilling to help you, if you ask basic questions in channels or forums of advanced linux distros, but that might be an unobjective opinion.

13
In Python 2, you could also use the builtin reduce()-function. (Consider functools.reduce() for Python 3.) It then looks like that:

Code: (python) [Select]
l = [1, 2, 3, 4, 5, 6, 7, 8]
average = reduce(lambda x, y: x + y, l) / float(len(l))

Pages: [1]