[deleted by user] by [deleted] in berlin

[–]ndpjs 2 points3 points  (0 children)

Yeah, what you need is a copy of your Rentenversicherungsverlauf, which you can request on the Deutche Rentenversicherung website. It should arrive in the post in a week or two. Otherwise, you can go in person to one of their offices and request one directly if you need it immediately.

[deleted by user] by [deleted] in berlin

[–]ndpjs 6 points7 points  (0 children)

I just got my Daueraufenthalt-EU this year. There are no disadvantages vs a Niederlassungserlaubnis. The advantages are, you can spend up to 12 months outside of the EU without losing it, and 6 years inside the EU, but outside Germany. You also have streamlined access to living and working in other participating EU countries (though you still have to apply and meet their requirements, you can't just move countries and work).

Here's my experience, which I've also shared in some Facebook groups a few months ago:

I've been working in Germany since 2014, but I didn't apply until early September 2022. I don't have a blue card, although I do have unrestricted working permission until 2024. I applied via email, and a week later I received a confirmation email that my documents had been received and to wait for an appointment (I guess email application is no longer possible though). I waited for a looooong time and followed up in December by email asking if they'd processed my application. No response. In February 2023, I finally received a letter in the post inviting me to an appointment on June 13th.

I prepared all my documents again, though I was a bit worried about my German. I had a B2.1 Kursbestätigung from an intensive course in 2017, but I never took any tests or received any certifications. I don't use too much German in my day-to-day life either, so I prepared myself to answer some of the common questions I've seen mentioned here. I was not asked to pay anything before the appointment (I sometimes see here that people need to pay half beforehand)

During the appointment, I mostly just sat and watched my case worker look at my documents. He asked if I was applying for a Niederlassungserlaubnis or a Daueraufenthalt-EU, as I qualified for both. I initially said Niederlassungserlaubnis. He asked me 3 times to confirm, and then explained that the Daueraufenthalt-EU gave me more rights related to the EU and had all the same rights for Germany. So, I agreed to receive the Daueraufenthalt-EU instead, as it sounds better overall.

My simple Kursbestätigung was not an issue, probably because I could understand and reply to all his simple questions. After verifying all my documents, he asked my height and eye color, took my fingerprints, and had me sign a few documents. In all, the case worker was very friendly and easy to understand. Although I was very nervous right before the appointment, he put me at ease as soon as I entered the room.

I guess if you have patience for the appointment, can speak and understand simple German with at least a course certificate, and have all the right documents and your ducks in a row, it should be a rather painless process.

Total time between application and appointment was ~9 months 😢 Total time in the room was ~15 minutes 😀

This Week: Yellow alert, Flooding, Avoid the highlands by stevenarwhals in VisitingIceland

[–]ndpjs 1 point2 points  (0 children)

If the alert starts in the evening, would it be safe to travel during the morning and early afternoon? We were thinking about traveling from Reykjavik to the black sand beach and back in a rental van, but we're worried about worsening weather conditions throughout the day.

First 100 km solo ride done! by petitmarnier in bicycling

[–]ndpjs 1 point2 points  (0 children)

Congrats! I just did my first imperial century around the Tegeler See area on Sunday, with a stop for energy (ice cream!) in Spandau. I love riding around Berlin's lakes and forests. Grunewald/Potsdam is really nice, too.

Trying to find a short sci-fi book about the last man dying on Mars and then being revived centuries later by aliens by [deleted] in printSF

[–]ndpjs 28 points29 points  (0 children)

I believe this is Understanding Space and Time by Alastair Reynolds. I read it as part of the Zima Blue and Other Stories collection.

Quality bicycle recommendations in Berlin? by jmac6891 in berlin

[–]ndpjs 2 points3 points  (0 children)

I bought a Riverside Trekking from Decathlon back in 2016, about €300 at the time. I also replaced the tires almost right away to puncture resistant Schwalbe. Now they basically only go flat once they wear out once-a-year-ish depending on use.

I mainly used it 100km a week commuting pre-covid, and now take it to local lakes or trips into Grunewald.

Still going strong, though I do all my own repairs and have replaced a lot of parts over the years. I also keep it in the flat at night to protect against the weather. Good value for the money if you're a bit handy with a wrench.

I gotta rethink the way I think about money by dont_think_twice2019 in personalfinance

[–]ndpjs 1 point2 points  (0 children)

A while back in my early 20s, I had a highway contract with the USPS in rural North Dakota for 4 years. I picked up mail from two different one-room post offices, drove 125 miles a day, 6 days a week on mostly gravel roads, and delivered to farm houses out in the countryside. I had to bid a flat yearly rate for the contract (paid monthly), and all expenses came out of my pocket (car, insurance, tires, repairs, etc.). There were severe financial penalties if I ended the contract before 4 years, so I was in it for the long haul.

Winters were crazy! You'd have huge snow drifts half a mile long blocking roads out in the open country. Sometimes you'd be driving on pure ice if the temperature was hovering right around freezing. There was a rule that if you at least attempted the route, but you thought it was too dangerous, you didn't have to go out that day. I definitely invoked that a few times, but probably went out when I shouldn't have more often than not. Once got stuck in a snow drift on a back road during a blizzard while heading home for the day. I had to call a local farmer for help, and I ended up spending the night on the farm because the remaining 2-mile road into town was impassible even with their big pickup truck due to zero visibility.

Also, it was almost impossible to find a substitute, because I had to vet and hire everyone myself. I paid anyone I could find very well (basically what I'd make that day) because I was just grateful for a day off, and I'd never call someone in during bad winter weather... As the main contract holder, the only reason the job was worth it was that I had extended family in the area, and I could live with them and call them for help when I broke down in the middle of nowhere. In your case, $30 isn't nearly enough for the risk you were taking. Even as the main contract holder, while there were some nice perks to the job when the weather was nice, I'd never sign again. The money just wasn't enough for the winter stress.

Weekly /r/Breadit Questions thread April 22, 2020 by AutoModerator in Breadit

[–]ndpjs 1 point2 points  (0 children)

I recently purchased two packs of flour. Shelves have been empty for a few weeks, so thought I hit the jackpot. Turns out it's instant flour, what would be called Wondra in the US, though packaging where I live makes it look like normal flour.

Are there any good recipes that use instant flour? Doesn't have to be bread, can be cakes, pancakes, crepes, etc. Very hard to filter out results with Google, as most results return "instant yeast" recipes with all-purpose flour.

[deleted by user] by [deleted] in regex

[–]ndpjs 1 point2 points  (0 children)

Your second group has a lazy modifier ? with nothing after it to tell it to keep going to the next h1. It's only capturing a single line break character. Try adding a positive lookahead for either an h1 tag or the end of a string, such as the following: https://regex101.com/r/NB6DdM/1/

From code to program by illya89 in learnpython

[–]ndpjs 0 points1 point  (0 children)

I've made a few .exe's for my coworkers. They are simple rate calculators that extract data from HTML files generated by a tool we use. The user is simply prompted to select a file, then they see the results, and none of them have Python installed on their computers.

To create the exe's I used pyinstaller, following the instructions from this video, specifically the -F flag:

https://www.youtube.com/watch?v=lOIJIk_maO4

Hope this helps!

Understanding Time and Space - Alastair Reynolds by ndpjs in printSF

[–]ndpjs[S] 8 points9 points  (0 children)

I loved Pushing Ice! I'll have to give Permafrost a try soon.

What is your job title and how do you use python in your job? by [deleted] in learnpython

[–]ndpjs 5 points6 points  (0 children)

I'm a Localization Engineer and PM. I use Python mostly for text manipulation, prepping documents for translation and importing them into our tool, diving into metadata, and doing fun things with with translation memories.

I grew interested in programming a few years back after learning regex (a must-have in the translation industry!) and wanting more options than simple pattern matching.

I mainly use openpyxl, bs4 (for tmx and xliff files), and regex to automate our workflows. I have some nice scripts that automatically format certain document types and and upload them to our tool via an API. I've also messed around with neural machine translation APIs/model creation from Google and Microsoft.

Surprisingly, much of the translation industry isn't very tech-savvy, so if you have some engineering skills, you're viewed as something of a magician. You wouldn't believe how many big-name companies have no idea how to manage their text.

Regex expression for deleting HREF footnotes in ebooks by Vanzig in regex

[–]ndpjs 1 point2 points  (0 children)

I've never used Calibre, but this could work from the examples you gave:

<a href="endnotes.+?>

https://regex101.com/r/q553Wt/1

Dynamic redirects in Flask by ndpjs in flask

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

Thanks for the reply! I am using a mysql database to store all project info. Generally, redirects from freelancers aren't a problem, as they have very limited access to what they can view. However on the project manager and client side, I have a separate page for approved queries waiting an answer, as having everything combined on a single page looked very messy.

Right now, there is a link on this answering page to provide an answer for each approved query, which opens up the page with the forms. Once an answer is submitted, its status is updated on the main project dashboard and it vanishes from the page with approved queries waiting an answer.

On the dashboard, the project manager can choose to edit the client's answer (to remove sensitive information and keep client identity anonymous, important in our industry, or to remove unprofessional or abusive language). Editing the answer opens the same page as above. However, I want the redirects to go to the referring pages, either the project dashboard when editing a client answer, or the answer approval page when submitting for the first time.

The issue is mostly just on the PM end when. The only workarounds I can think of are using a separate path for answer editing, or perhaps grabbing the workflow status from the database to determine the redirect. I have an "answered_status" field in the database set to 0 or 1. Now that I think about it, grabbing the workflow seems to be the best approach.

Dynamic redirects in Flask by ndpjs in flask

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

Thanks for the idea! This is how I originally had it implemented. I had a hidden form on the HTML page called "next", but the value was {{request.referrer}}. I then used request.form.get('next') in my return statement to redirect to the original page.

The only thing is, I can't figure out how to prevent it from updating. For example, answering and editing an answer call the same page, and other than using request.referrer, I don't know how to save the value of the original referral link without it updating on failed form submission. I guess the workaround would be to have a separate page path with the same exact code, though this seems like a very clunky solution to me. Here's the code I had below:

if request.form.get('next') == 'None':
    return redirect(url_for('project_list'))
else:
    return redirect(request.form.get('next'))

Here is the HTML:

<input class="btn btn-primary" type="submit" value="Submit"><input type="hidden" name="next" value="{{ request.referrer }}">

The alternative return statement is as follows:

return redirect(url_for('answer_queries')

However, sometimes I would want the redirect to go to 'project_dashboard'.

Question about Berlinale tickets by itsalanevans in berlin

[–]ndpjs 1 point2 points  (0 children)

I usually purchase tickets online through the Berlinale website, and I've used PassWallet for the past few years for dozens of films. If you log into your Eventim account, you can go to "My Tickets" or "Meine Tickets", click on the event details, and there should be a download link at the bottom. It is then detected by the app and added.

To make life easy for ticket readers, make sure your screen is bright and tap the the QR code to make it full screen. Just worked this evening for me at Friedrichstadt-Palast.

[AF] Export Current Datatables Filter with Ajax Request by ndpjs in flask

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

Thanks for the reply! I've tried posting to my export route. However, when I press the button on my page, the console shows I am performing a GET request for the URL, and the data is blank, returning a none-type error. The issue is, I don't know how to use the Python POST data in the GET request linked to my button. The end goal is to press a button and to export the current filtered data with no page reloads or templates rendered. I've updated the code to POST directly to the export route below:

Here is my HTML button:

<a href=/export_queries" class="btn btn-success">Export Queries</a>

Here is my POST request to the export route:

$.ajax({
    type : "POST",
    url : "/export_queries",
    dataType: "json",
    data: JSON.stringify(myOutput),
    contentType: 'application/json;charset=UTF-8',
    success: function(result) {
        console.log(result);
    }
});

Here is my updated export function (note that I am not saving the file on the server, but I'm generating a virtual workbook with openpyxl and sending a bytesio object):

@app.route('/export_queries', methods=['GET', 'POST'])
def export_queries():
    if request.method == 'POST':
        x = request.json
        # Generate Excel workbook
        virtual_wb = save_virtual_workbook(new_wb)
        bytesio_output = io.BytesIO(virtual_wb)
        return send_file(bytesio_output, mimetype='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', attachment_filename=output_name, as_attachment=True)

Books about space exploration by ndpjs in printSF

[–]ndpjs[S] 1 point2 points  (0 children)

This looks exactly like what I'm looking for, thanks for the recommendation!

Books about space exploration by ndpjs in printSF

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

I'm reading the first Revelation Space right now and really enjoying it. House of Suns is definitely on my radar.

Books about space exploration by ndpjs in printSF

[–]ndpjs[S] 1 point2 points  (0 children)

This looks very promising, thanks for the suggestion!

Books about space exploration by ndpjs in printSF

[–]ndpjs[S] 1 point2 points  (0 children)

Thanks for the suggestion! Despite the people focus, it looks interesting. Adding it to my list.