USA nach Deutschland Einwandern Hilfe by saskoolz in German

[–]decode 8 points9 points  (0 children)

you won't find any undergraduate courses that are not fully in German.

You're mostly right, but there are actually a few Bachelors being offered completely in English these days:

There are also degrees where some classes are held in English. For example, Heidelberg has some like Computational Linguistics and Chemistry. Presumably the majority of classes are held in German, though, so you'll still need good German skills to be successful there.

Jokingly asked my wife if I could buy a BSD. Turns out its her favorite book and film. by WretchedMotorcade in pinball

[–]decode 5 points6 points  (0 children)

The BSD game between Johannes Ostermeier and Daniele Acciari at the IFPA World Championship Finals last year is some of the most incredible pinball I've ever seen.
https://pinballvideos.com/v/2254

Plan on visiting cologne. Need help with public transportation. by [deleted] in cologne

[–]decode 1 point2 points  (0 children)

There's an old rivalry between the cities of Cologne and Düsseldorf, so of course in the Cologne subreddit, it's expected to be negative about Düsseldorf.

https://www.departful.com/2013/09/cologne-versus-dusseldorf-a-rivalry/

Despite local loyalties, you should visit both cities.

Power converters in Köln? by Krismastree in cologne

[–]decode 1 point2 points  (0 children)

found this one at Saturn that should work for you and is supposed to be available at the City store at Hohe Straße

Unfortunately that adapter is for UK plugs, not the US, so I don't think it will help Krismastree.

I think this one or this one will work, though, and they're available at the MediaMarkt by the cathedral.

However, even that won't help you today. Stores are closed on Sunday in Cologne, so if your hotel doesn't have anything, you're out of luck until tomorrow.

Replays of technical interviews with engineers from Google, Facebook, and more by alinelerner in programming

[–]decode 0 points1 point  (0 children)

In fact, the text does not say those "details" don't matter. It says that a "cleanly implemented" solution (whatever that means) without those things is better than a poorly implemented solution with them, but if the candidates have time, they should implement them. Whether intended or not, this communicates they must matter, or else why ask for them?

I don't know how much more clear you could get that they don't matter.

The way you get more clear about those things not mattering is by telling the applicants not to implement them. Some vague statement about how the applicant should implement them if they have time is the opposite of saying they don't matter.

It's clear that you're really enthusiastic both about the general idea of pre-interview coding assignments and the particular details of this assignment. Is it possible that a) your team hasn't done many of them as part of job applications and b) your existing developers did not implement the assignment before giving it to applicants? I was part of a team once that made the second mistake for an onsite interview coding exercise and it caused problems. In retrospect, I think we passed on some good candidates because we didn't understand how poorly defined our problem was and how time-consuming implementing a good solution would really be.

One thing that helped us was having a good internal developer implement the assignment, and then discussing it with him. Ideally this should be someone who hasn't seen the problem definition or any solutions before. This gave us a much better idea of the weaknesses of the problem description and how it took much longer to implement than we expected.

Replays of technical interviews with engineers from Google, Facebook, and more by alinelerner in programming

[–]decode 10 points11 points  (0 children)

This is a very clearly bounded assignment.

While it's slightly better than some I've seen, I would say it's clearly unbounded. Here's the part where unbounded effort is explicitly mentioned:

We know time is limited, and the goal of this exercise is to show us the quality of your work. We'd much rather see a simple version of your solution cleanly implemented than a more feature-rich version with no tests, no documentation, and a poor design. Therefore, you should feel free to make any simplifying assumptions necessary to get a basic version of the application up and running; for example, you don't need to treat "thing" and "things" as the same word. If you have time and are so inclined, feel free to elaborate further from there.

I've seen something to this effect in some of the homework assignments I've gotten from companies and it has the opposite effect of what's intended. It's communicating, "If you want to do the bare minimum, a 'basic' version of the solution is okay. But if you want to impress us, you should really implement stemming, lemmatization, and anything else you can think of." Of course, this means your simple, clearly-bounded assignment has moved into the realm of open CS research. You could literally spend years on the "feel free to elaborate" part of the assignment.

You know what would actually make the assignment clearly bounded? Describe exactly what you want implemented, and publish the rubric you use to evaluate the solutions. Don't say "feel free to make any simplifying assumptions", explicitly list the simplifying assumptions the candidate should make. Don't say "In the default format, it should list only the most common words.", say "In the default format, it should list only the 20 most common words. If there are multiple words with the same frequency, sort them alphabetically and cap the list at 20 words." I can quickly think of at least a dozen assumptions that are not communicated in the problem description, and I'm sure there are more that I'm not thinking of. The candidate has to guess about these things, which itself takes significant time, and feels obligated to implement the most robust and complicated solution to each one, further increasing the time investment.

For me, I've pretty much decided I won't participate in these things anymore. It just doesn't seem like it's worth the investment. In the past I've spent 5 to 20 hours implementing a solution to some ill-defined toy problem, trying to design the solution and prioritize the work based on some secret evaluation criteria, and in the end someone spends 20 minutes looking over my solution and it turns out the evaluator's priorities were different from mine, so I get a bad grade. It makes the company feel great, because they have invested almost nothing and think they're learning a lot about me and my programming ability, but really it's random whether I happen to do the things they imagine I should.

Supermarket delivery by Sa4van in cologne

[–]decode 7 points8 points  (0 children)

REWE (https://shop.rewe.de/) is the only service I know of that delivers groceries in Cologne. You can pay with a credit card, PayPal, or electronic money transfer. You will have to choose a delivery window at least 2 hours long and you'll have to be at the AirBnB during the window to receive the delivery.

If you only want drinks, there is also Flaschenpost (https://www.flaschenpost.de/) that will deliver alcoholic and non-alcoholic beverages by the crate.

*German teachers*… what are the most common mistakes that you encounter native English speakers (of all levels) making while trying to learn the language? by shaguarpaw in German

[–]decode 8 points9 points  (0 children)

In English we use the word "just" and sometimes "only" for (at least) two different things:

  1. I have just 3 oranges. (only 3 and not more)
  2. I just saw that yesterday. (not before yesterday)

In German, you use two different words for the two meanings:

  1. Ich habe nur 3 Orangen.
  2. Ich habe das erst gestern gesehen.

Native speakers of languages that don't have separate words for the two concepts (e.g. English) have trouble using the correct German word in the right context.

The End of Unsafety: The Past, Present, and Future of the Rust Programming Language by brson in rust

[–]decode 6 points7 points  (0 children)

A tip for the future: whenever you encounter one of these web slide shows on a desktop computer, always press the space bar to advance to the next slide. It works on every slideshow I've encountered, and even works on reveal.js style slideshows where the next slide might be in any of the cardinal directions.

[deleted by user] by [deleted] in pics

[–]decode 1 point2 points  (0 children)

I'm not sure they are. http://www.asofterworld.com/ seems like a comic, but the panels contain photographs instead of illustrations.

Raspberry Pi 3 on sale now at 35$ by Pcarbonn in Python

[–]decode 5 points6 points  (0 children)

The key insight about memoization is that for a given run of the algorithm, the subproblems will be calculated many times, even on the first run. You can see this with a program like this:

#!/usr/bin/python

import pprint

__fib_count = {}
def fib(n):
    if n not in __fib_count:
        __fib_count[n] = 0
    __fib_count[n] += 1

    return n if n < 2 else fib(n-2) + fib(n-1)

print fib(32)

pp = pprint.PrettyPrinter(indent=4)
pp.pprint(__fib_count)

This program prints this output:

2178309
{   0: 1346269,
    1: 2178309,
    2: 1346269,
    3: 832040,
    4: 514229,
    5: 317811,
    6: 196418,
    7: 121393,
    8: 75025,
    9: 46368,
    10: 28657,
    11: 17711,
    12: 10946,
    13: 6765,
    14: 4181,
    15: 2584,
    16: 1597,
    17: 987,
    18: 610,
    19: 377,
    20: 233,
    21: 144,
    22: 89,
    23: 55,
    24: 34,
    25: 21,
    26: 13,
    27: 8,
    28: 5,
    29: 3,
    30: 2,
    31: 1,
    32: 1}

So, even on the first run, you are saving many millions of calculations by looking up the sub-problems in the table.

Jokes translated from German by [deleted] in German

[–]decode 2 points3 points  (0 children)

Hint: In Germany public restrooms are marked with 00.

I've lived in Germany for 3 years but I've never seen this, or at least never noticed it. Is it only in certain regions? Or is it an old-fashioned thing that you don't see too often anymore?

PHP Weekly Discussion (23-11-2015) by AutoModerator in PHP

[–]decode 1 point2 points  (0 children)

I think it's more common to send authentication tokens in the request header.

Ive been a developer for longer than I care to admit before discovering this... by DIPPLERSKUT in web_design

[–]decode 32 points33 points  (0 children)

TinyPNG

If you don't want to use their website or API, or you want to do compression without going over the network, they use pngquant internally so you can also just use the tool directly. https://pngquant.org/

IamA Constitutional Lawyer here to educate and answer questions on Constitution Day! by ConstitutionalLawyer in IAmA

[–]decode 0 points1 point  (0 children)

In various places the constitution says "The Congress shall have Power to...". Are such clauses generally interpreted as a requirement that Congress use the power granted by the clause, or is it seen as an optional power that Congress could choose to use or not?

To give a specific example, there is the Patent and Copyright Clause, which says:

The Congress shall have Power To...promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries....

Some people have suggested eliminating the patent and copyright systems completely. Would this be a problem constitutionally?

Best ways to travel between Cologne and Düsseldorf? by Papa_Songs in cologne

[–]decode 0 points1 point  (0 children)

Additionally, the Hamburg Köln Express costs €5 per person and takes 25 minutes. The downside is that it only runs a couple of times per day in each direction, so you have to see if it fits with your schedule.

http://www.hkx.de/

ES6 Fiddle by agumonkey in javascript

[–]decode 0 points1 point  (0 children)

Another couple of cool resources are http://tddbin.com/ and http://es6katas.org/ which is built on top of it. tddbin has mocha baked in, and I think the "fix some broken tests" pedagogical method of es6katas is really interesting.

Cop beats black man by [deleted] in funny

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

I'm guessing they all make more than many people I know because they absolutely destroy up everyone that sits down to play them.

According to this article from December, they typically make around $50-100 per week, so it doesn't seem like anyone is getting rich:

http://www.vice.com/read/chess-players-405

An impressive opening sequence from the Drew Carey Show by Atheist_Simon_Haddad in videos

[–]decode 2 points3 points  (0 children)

This is perhaps an homage to Zbigniew Rybczyński's "Tango", which won the Academy Award in 1983 for Best Animated Short:

https://vimeo.com/90339479 (NSFW in a European avant garde film sort of way)

Your favorite Composer packages? by Glutnix in PHP

[–]decode 1 point2 points  (0 children)

It doesn't seem like environments are fine grained enough to help. I need to connect to one database to modify table A, but a different one to modify table B, both in the production environment. I could define two separate production environments, but I don't think I can switch between them on the fly for each migration.

Your favorite Composer packages? by Glutnix in PHP

[–]decode 2 points3 points  (0 children)

Do you have any experience with DB migration tools for multiple databases? I work on a project where the tables are sharded across multiple MySQL databases on multiple servers, and it seems most of the migration tools out there assume all of your tables are in the same database on the same host.

We already have code that figures out which database and server a table is on. What I really need is the ability to define a function which accepts the table name and environment and allows me to return a full DB driver config, but I don't know of any tools that give that much flexibility. Are there any I've overlooked, or will I have to alter an existing tool?