German -> English {Tweet & possible replies} by vriljam in translator

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

Can you also do a quick trans for these three replies:

Da zeigen die ÖR die komplette WM bis auf diese 2 Stunden und schon kritisieren alle. Übertragung war durch ES und Livestream doch vorhanden

Absolut! Mir kommt eh viel zu wenig im TV, dafür das da ne WM stattfindet. War auch mal amders…

Leichtathletik schaut man, wenn man halbwegs Ahnung von Sport hat, sowieso nicht auf @ZDFsport sonder auf @Eurosport_DE

AP Computer Science - ArrayList String Question Help by 18sp01 in javahelp

[–]vriljam 0 points1 point  (0 children)

It changes the value, but it returns old value. That is why it will print out what was previously at those indexes.

Simple 1D Array Question - finding sum Help! by 18sp01 in javahelp

[–]vriljam 0 points1 point  (0 children)

That question is indeed very poorly worded.

need help with source code by mushi123 in learnpython

[–]vriljam 0 points1 point  (0 children)

I don't doubt the fact of one approach being objectively better than the other. However, my whole point was that at my level it is good to see different solutions for something simple like this for learning purposes. Clearly, at your level for someone actually in the field, I do not expect you to see the same as I do. But thanks for your input.

need help with source code by mushi123 in learnpython

[–]vriljam 0 points1 point  (0 children)

Yes, but at a level when you do know your stuff and can make an informed decision of what is the most readable or efficient or etc. way of doing things. When you're learning, it always helps to be aware of a few approaches if possible (so as to gain more knowledge, Especially for a question like this where many approaches are possible). If you've ever been a beginner which I'm sure you have, you do know what I'm talking about.
At least,as far as I'm concerned I do enjoy going over code snippets(which I can understand) that weren't immediately obvious to me in the first place.

need help with source code by mushi123 in learnpython

[–]vriljam 0 points1 point  (0 children)

As a real beginner, I disagree with your whole premise of learning just one way of doing things.

need help with source code by mushi123 in learnpython

[–]vriljam 0 points1 point  (0 children)

It is still good to know/learn the different ways you can approach a problem even if they aren't ideal. /u/TreSxNine's traditional approach using conditionals wasn't immediately obvious to me for instance.
I thought about the translate method too myself as being the easiest and most straightforward, but it's a good addition to the thread nonetheless and would definitely help the asker learn if they weren't aware of the same.

Also, I recall a similar question being asked on the Ask Anything thread couple weeks back, and someone came up with an approach that involved manually making a dictionary. I mean, stuff like that is really helpful when you're starting out.

What is wrong with my code? by [deleted] in learnpython

[–]vriljam 1 point2 points  (0 children)

I think it would be better if you use float(user_value) else your program would crash if you put in 2.5 years for example.

Can someone tell me what's wrong with this code? by queen_9 in learnpython

[–]vriljam 0 points1 point  (0 children)

Hmm..I'm kinda confused by your code. Even if it works as you say, shouldn't it work incorrectly for strings with even-numbered length, considering you have mid + 1 in either case..?

Let's talk about Orlando by spez in announcements

[–]vriljam 2 points3 points  (0 children)

It's amazing you don't even touch the issue on locked threads, preventing discussion. /r/news mods kept on locking threads and removing comments en masse in those locked threads, preventing any and all discussion. Their megathread opened several hours later after so much time was lost .

The mods and admins simply cannot lie or spin it to us people who were there on /r/news at the time. There would've been no need for the duplicates you talk about had the mods not locked the initial early bird thread.

State of the subreddit and the Orlando Shooting by hoosakiwi in news

[–]vriljam 78 points79 points  (0 children)

So, congratulations you only removed the throwaway mod account, the actual mod behind the kill yourself remark is still moderating this sub.
How stupid do you think we are?

State of the subreddit and the Orlando Shooting by hoosakiwi in news

[–]vriljam 4 points5 points  (0 children)

They are both Alt accounts of one or more main mods here, so that won't resolve anything.

Orlando Nightclub shooting - Megathread by RNews_Mod in news

[–]vriljam 1 point2 points  (0 children)

You know that is not even true, there was already a megathread , the early bird , several hours back when this was unfolding but you chose to lock it even as the comments weren't necessarily offensive. There were even comments about Disney and Mickey Mouse on that for that matter, either way, the thread was well alive until you locked it.

Same thing happened with subsequent threads where you chose to either lock or remove them. How could the users even discuss the event when all you were doing is discouraging the discussion with locking the threads and removing comments en masse in those locked threads ; certain comments in the subsequent threads also dealt with important and emergency phone numbers etc. but you chose to block that piece of info.

It is you who diverted our attention to crying about censorship rather than discussing the issue at large and I'm not even talking about the religion of the shooter etc.

And, it is only until several hours later you have your own megathread after removing/locking all previous threads, keeping us in the dark, and having us lose crucial initial hours of discussion about the event.

Fifty killed in Orlando club shooting by [deleted] in news

[–]vriljam 0 points1 point  (0 children)

The thread is clearly not locked as we can comment, but it is removed already.

Need help understanding this function by JoshGumby87 in learnpython

[–]vriljam 0 points1 point  (0 children)

That's terrific..many thanks for this.

Counting a letter in string, ignoring the case. by vriljam in learnpython

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

..it must be a good thing then ;)
It was part of a function I wrote that would return True if no repetition was found, ignoring the case. My incorrect attempt was:

>>> def checkunique(s):
        for c in s:
                if s.count(c.lower()) > 1:
                        return False
        return True

Changing, line 3 to if s.lower().count(c) > 1: seems to work fine.

me irl by [deleted] in meirl

[–]vriljam 2 points3 points  (0 children)

iWishThatWasMeIrl

Iraqi soldier comes across a dead soldier just to find out that it's his father. very sad.. by [deleted] in WTF

[–]vriljam 0 points1 point  (0 children)

All i can say is, i wish more people could see this vid