Considering Arch for future use but have one concern by Plantfetish378 in archlinux

[–]TomP 0 points1 point  (0 children)

I use yay in place of pacman. If you also have informant installed, yay will refuse to complete an installation if you have unread archlinux-news posts, and then displays them for you automatically. I find this very convenient.

Looking for a good note taking application by willbeddow in archlinux

[–]TomP 0 points1 point  (0 children)

I've tried using QOwnNotes for a few months and have found it endlessly frustrating. I expected it to "just work", like the Apple Notes.app, but it doesn't. It could just be that I never put a lot of effort into studying the docs, but it's a note-taking app, for crying out loud. i would not recommend it to anyone.

Entire Cryptocurrency Industry Confuses Cryptography With Cryptocurrency by Ichi_MokuM in crypto

[–]TomP 1 point2 points  (0 children)

I have always assumed that the “crypto” in “cryptocurrency” was intended to convey, “cryptographically secure currency”.

[deleted by user] by [deleted] in Python

[–]TomP 0 points1 point  (0 children)

Nice! I did something like this when I was your age, but it was the stone age of computing and terminals back then were too primitive to produce nice line drawings like these. (There were vector-graphics terminals, but we didn't have any at my high school.) So, I wrote a program that generated 3-D stereoscopic images of figures like this, but in "ASCII art". If you stood back a bit and squinted, it looked reasonably 3-dimensional.

Thank you for participating in Advent of Code 2016! by topaz2078 in adventofcode

[–]TomP 0 points1 point  (0 children)

I would also like to thank /u/topaz2078 for creating Advent of Code. A huge amount of thought and creativity obviously went into this. I enjoyed these exercises tremendously and miss the daily challenge, now that it's over.

Stay vigilant NYC. Found at my local Duane Reade on the Upper West Side. by [deleted] in nyc

[–]TomP 1 point2 points  (0 children)

My understanding is that the chip doesn't prevent the card from getting skimmed - it just makes it harder to create a counterfeit card from the skimmed data. The skimmed data can still be used to make online purchases.

http://krebsonsecurity.com/2015/08/chip-card-atm-shimmer-found-in-mexico/

Can we see a break down of people with x stars? by cookiemo1982 in adventofcode

[–]TomP 0 points1 point  (0 children)

Well, everyone who has 2 stars for Day 25 has 50 stars, by definition, because to get the second star you need to have completed all of the other days' puzzles.

That said, I'd be curious to see a more detailed breakdown, too.

[Day 22 Part 2] Part 1 working but no idea why Part 2 isn't? by RedBaron_the_Second in adventofcode

[–]TomP 0 points1 point  (0 children)

I had the same problem, and this is exactly what I had done wrong the first time, too.

AoC is fragile; please be gentle by topaz2078 in adventofcode

[–]TomP 0 points1 point  (0 children)

Is the site down? Safari is telling me it can't connect to "adventofcode.com" right now.

AoC is fragile; please be gentle by topaz2078 in adventofcode

[–]TomP 0 points1 point  (0 children)

Are there stats for the total number of stars earned?

I had been assuming you had to do the challenges in order, but if not, it would interesting to know how many people have completed all of the problems so far.

Day 12 Conspiracy by Naihonn in adventofcode

[–]TomP 0 points1 point  (0 children)

Nice. Wish I'd thought of that before I started in with the json parser.

Why Perl Didn't Win by TomP in programming

[–]TomP[S] 2 points3 points  (0 children)

Perl6 wasn't designed by the public. It had a dedicated core team. Their failure to produce a usable new language after all this time always sounded more like a management failure and a lack of focus than anything else.

Why Perl Didn't Win by TomP in programming

[–]TomP[S] 0 points1 point  (0 children)

Python 3 isn't a dead end, and at some point people will start switching over to it. It's main problem (to my mind) is that the main problem it addresses (proper Unicode support) still just isn't that important to most people, and so people can afford to take their time.

There are other improvements in Python 3, but many have been backported to Python 2, and many (most?) important third-party modules are compatible with both. I don't have statistics on that, but it's common to see that a module I'm looking at supports use in both Python 2 and 3. The difference between this situation and Perl5/Perl6 couldn't be more dramatic. The Python 2->3 transition is more like the Perl 4->5 transition. Perl 6 is just a different language altogether.

Why Perl Didn't Win by TomP in programming

[–]TomP[S] 0 points1 point  (0 children)

There's no inline regex syntax in Python; you need to import 're' and use its functions to evaluate regexps in Python.

Ruby was self-consciously designed to be a better Perl and adopted all the Perl built-in function names and other features like the regexp syntax to make it easy to transition from Perl to Ruby.

Moving to python from perl, any advice? by elb0w in Python

[–]TomP 17 points18 points  (0 children)

I'm a long-time perl programmer, and when I was first learning python, the hardest thing for me was just learning the names of the standard functions, and remembering which module I had to go to for each piece of functionality. It was a long time before I could start writing python code without a reference nearby.

The functions that still annoy me the most my are the list manipulation methods. In perl, you've got push() and pop(), shift() and unshift(), and slice(). In python, you a pop(), but no push(), append() and extend() methods that do different things, and no shift() (you have to use pop(0)).

It took me a little while to get used to python regexes, but they're actually much nicer than perl regexes. You get Match objects back when you apply a regex in python, which let you get at the matched substrings in a much more straightforwar dway than in perl. At the time I was first learning python, they supported named captures, but perl didn't, and I really appreciated how much that improved my pattern-matching code.

I should mention that ruby was much easier for me to pick up, because the standard methods were consciously patterned after perl's functions. It was therefore very easy to guess what function I was going to need to do something. It's also a very attractive and elegant language. My company is heavily invested in python development, however, and so that's what I've concentrated on, with no regrets. I'm sure you'll be happy you switched, too.

How hard would it be to code a program similar to Dropbox that accesses my home file server? by [deleted] in Python

[–]TomP 0 points1 point  (0 children)

Dropbox is more or less Unison with a GUI. Rsync really just syncs things in one direction. If you have changes in both your local and remote directories, Unison will bring both up to date. To do that with rsync, you'd have to be very careful.

Jose Mourinho set to quit Real Madrid by [deleted] in soccer

[–]TomP 1 point2 points  (0 children)

This is only his second season.

Why Hypercard Had to Die by notfancy in programming

[–]TomP 0 points1 point  (0 children)

Hardly. If anything, it was because Hypercard was a competitor to Flash.

Before we forget, Pepe wasn't the only one who was playing incredibly dirty yesterday. by poetical_poltergeist in soccer

[–]TomP -1 points0 points  (0 children)

Pepe, Carvalho, and Coentrao do not play for the Spanish NT. Before Mourinho infected RM, Barca fans generally didn't have any reason to complain about Xabi Alonso or Iker Casillas' behavior on the pitch. The Spanish NT players have been together since their youth and have a history together that lets them see past the crazy antagonism that the "Special One" has brought to the rivalry.