r/stackoverflow • • Aug 29 '19

Easy indexOf problem. Help!!

1 Upvotes

Hi guys, I'm new to the sub, and I need help with a very easy problem. I am currently in a programming 'bootcamp'. If anyone can answer this. Thank you. If anyone can explain it to me. Thanks again. Also I have to use indexOf to solve this, no filter.

Write a function unique(array) that returns an array where all the duplicates

of the input array have been removed; in other words, every element remaining

is unique.

Hint: use indexOf

Example:

unique([1, 1, 2, 3, 3]) => [1, 2, 3]


r/stackoverflow • • Aug 25 '19

CSS to ASCII converter wanted

Post image
1 Upvotes

r/stackoverflow • • Jul 31 '19

Can you use Stack Overflow during coding interviews?

Thumbnail
youtu.be
1 Upvotes

r/stackoverflow • • Jul 30 '19

Need help. Program supposed to count how many characters are in name but it is refusing to enter the if statement

Post image
1 Upvotes

r/stackoverflow • • Jun 29 '19

I can't pull up tags

1 Upvotes

Is anyone else having this problem? I can't pull up tags. I can't submit anything cause I can't tag it. Nothing happens I type things in and it's just text. I can't click next. I tried another browser and it doesn't work there either. Is my account blocked or something? No one else seems to be having to issue I haven't been able to find any trouble shooting information on it.

Edit: I have posted question on stack overflow before and usually when typing things just pull up. Has there been a change? I have tried a few keys after typing things (enter, tab, ctrl, I don't know) it just doesn't turn into a tag.


r/stackoverflow • • Jun 01 '19

We are in 2019 and the holy Stackoverflow is unwelcome more than ever

1 Upvotes

Sadly that's true, this site made by all users, even users with less than 15 rep. but now site managed by some high rep users, which some of them earned their scores unfair (based on SO's rules). (I can prove it)

When some user post something on Meta about that, they attacked to kill him, first downvotes and then delete the post, I don't know if we can not discuss SO on Meta, where can we?!

They deleted low rep user's post immediately, but high rep users can even post/ask duplicates, post their answers on multiple questions, you name it.

There are rules on Stackoverflow, but sadly doesn't apply equally to everyone.

Edit

There is many obvious duplicate questions that is not marked as duplicate and almost all of them asked by high rep users, but some like this as mentioned by alpha-201 marked as duplicate (yes, maybe that's duplicate, but there are many more obvious duplicates which doesn't marked as duplicate, and I don't this any reason but the user rep) and is this fair to you?!


r/stackoverflow • • Apr 01 '19

My day on the job today is RUINED - because of LAGGY 'Time machine' animations

1 Upvotes

WTF, those are laggy as hell. Especially if seen from RDP, how to turn off this shit ?


r/stackoverflow • • Mar 09 '19

Wondering if someone could help me figure this one out?

Thumbnail
stackoverflow.com
1 Upvotes

r/stackoverflow • • Feb 01 '19

[C++ Question] Easiest way to create a code that chooses a random item from a stack

1 Upvotes

I'm still derusting / getting used to C++ right now, what is the easiest and shortest / most beginner friendly way to write a code that randomly selects an item out of a stack and removes it from the stack, and after N times, prints the removed items?


r/stackoverflow • • Jan 30 '19

Scraping CSS (python)

1 Upvotes

Hey all,

I know with BeautifulSoup and other modules we can scrape websites for HTML content. While this is great, I'm wondering if we can also grab the CSS of a site. I did not see this on the BS4 site.

Is it possible to scrape the CSS of a site? Any help or documentation links would be greatly appreciated.


r/stackoverflow • • Dec 17 '18

Not a javascript guru by far but looking to add a new line here

1 Upvotes

I am about to flip my lid here been a day or so with lots a research. It has been about 5 years since I wrote anything in Javascript and I am struggling here. I am looking to add a new line where I circled on the screen shot.


r/stackoverflow • • Aug 10 '18

Help!

1 Upvotes

I work for a research lab and I have been working to develop an app in flutter. However, I have been hitting walls constantly and am on the verge of giving up. I don't understand just about anything in dart and even after all the tutorials and attempts at it, it still feels like gibberish. So advice? Help?? If anyone would like to help on the app, it is very simple and I will not be able to pay you or compensate you but it will be very appreciated!! Thank you! :)


r/stackoverflow • • Jul 04 '18

Will deleting my account and recreating it with the same username get me un-banned from SO?

1 Upvotes

Title


r/stackoverflow • • Jun 29 '18

What are these "User was removed" notifications I see once in a month? Why would someone create an account to downvote?

Post image
1 Upvotes

r/stackoverflow • • May 22 '18

idk why python self help on stackoverflow in general is so sparse....it's always on github issue reporting, never on stackoverflow

1 Upvotes

i.e. https://github.com/jupyter/notebook/issues/2301

github issue reporting has self censorship where the author is allowed to delete comments and not let them linger and they close topics even if it's not fixed completely

there has to be like double the amount of python to R users by now

at least stackoverflow you can make a complete ass of out yourself in pursuit of even asking the right questions for R....nobody does that for python...the python community has too much pride at a fault that it hurts the googling community if the original question was not asked or censored on github issue reporting

there needs to be more noobs using python by now...cmon data science/CS bootcamps....produce more noobs already

yeah i learn slower in python just because i cant google my way to get answers...i have to pre-know some of this fundamentals from the C language, etc on how to think and subset, index, etc setting dataframes, etc

or i just have to take more udemy courses and see if i haphazardly pick up some nuance coding skill mechanisms through repetition

more people asking python questions need to use stackoverflow for their Q/A instead of github issue reporting, esp if it's not a package issue...these are my thoughts


r/stackoverflow • • May 18 '18

The question about the permissions for distribution of Stackoverflow data

1 Upvotes

I have a question about the legality of distribution of Stackoverflow data. For example, if I collect Stackoverflow data (user's, question's and answer's information) using their API for some data analysis experiments (just my hobby), and if I want to share results of my investigations somewhere (for instance in my blog), can I also share the data which I collect or it violates copyrights or Stackoverflow usage rules? Also can I share scripts which I wrote for collecting the data?


r/stackoverflow • • May 09 '18

Stackoverflow: how do I fucking comment or answer any fucking thing on this fucking site - "not enough rep"

1 Upvotes

It says I don't have enough rep to even comment, in fact I don't think I have enough to even ask a question. How the fuck does anybody use this god damn website anymore

Excuse my french but this site is annoyingly unfriendly


r/stackoverflow • • Apr 05 '18

What's the ruling on whether or not this type of question is okay?

1 Upvotes

I was asked (on a comment of a different answer) the following question:

Think of a 4 digit whole number "x" when multiplied to itself, you'll get 8 digit whole number who's 4 last digit number is equal to "x"

Instead of trying to answer through that comment thread I figured it'd be more suited to it's own question, so I asked and answered the question here, but stated it such that it was open to more answers as advised in this meta post.

However, there was a storm of statements on both sides as to whether or not this is an okay thing to have on StackOverflow... And I am confused. What's the ruling in this case? Or cases like this?


r/stackoverflow • • Apr 04 '18

Anyone with reputation > 1500 wanna create a tag for me?

1 Upvotes

r/stackoverflow • • Apr 01 '18

Hello, I'm wondering if I could get help there

1 Upvotes

Since I'm not a developer or something, just a basic web designer, I want to know if that's possible to get from a website the last uploaded files or something to spy (from assets.supremenewyork.com)


r/stackoverflow • • Mar 30 '18

Is stackoverflow getting abused?

1 Upvotes

I don't post on stackoverflow very often. But what I did notice is the correct post often get downvoted by members with high reputation. Their are many users out their that just grind for reputation simply to abuse it later on.

The issue involves the following problems:

  • Little to no questions can be reached with an open mindset. When some asks a question and the alternative solution you suggested is a little bit sides the question it get downvoted. Even when it's just you mentioned after solving the question on the traditional way.

  • If just a single word in your answer cause confusion. Just delete your post. Even when corrected. They downvote just because it's in your history.

  • When the poster causes confusion and you post an aswer before he edited it. Than if your not carefull. Your post will get downvoted because you solved the question based on the content the user posted before his edit.

  • The downvote of repeating is another one. When you quote an answer of a question from someone else. You want to go more into detail for that solution or provide alternatives that require that answer to make the contrast. Just don't do it. Whatever reason you get downvoted because you stole his code (in quote marks). It's pathetic actually.

Some examples:

  • Scenario 1: An user asks how to controle the overlay of position absolute div's. So I give him the answer he's probally looking to controle the z-index. So I gave him the answer to set the opacity on '.99' on all elements (*). Than he edited his post and than people came to the conclusion that it was just a position relative & a position absolute. So the z-index wasn't required anymore to solve the question. A few hours later I notice a lose of 2 reputation for that.

  • Scenario 2: I saw a question was already answered with the best solution. However I knewn an alternative solution. But the solution was only worth it when a certain condition was met that was not mentioned in his question. I had to refer the only correct answer because I needed that to example when my solution would be better. So I quote the already solved answer thougth the guy would be happy I gave him credit. So I made the post but I didn't properly close the quote tag (despite the post was clearly buildup that way that it was a quote). So that guys starts to blowup in the comments. I assume it was a child or something. Eventually I just deleted the post but the damage was already been done.

What do you think of this?


r/stackoverflow • • Mar 18 '18

Stack overflow community

1 Upvotes

Why does everybody answering questions on stack overflow seem to have a stick up their arse? I find 95% of the comments are people trying to prove that they're smarter/better than you are rather than trying to help to answer the original question.


r/stackoverflow • • Mar 05 '18

I've got a desire to delete all my answers that helped millions of people.

Post image
1 Upvotes

r/stackoverflow • • Feb 12 '18

People these days

Post image
1 Upvotes

r/stackoverflow • • Jan 31 '18

I want to display all markers of the locations for all the users in the Firebase database to android studio

1 Upvotes