Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 11 23:36
    @MadLittleMods banned @gfhkj
  • Jun 13 17:43
    @rostrander_gitlab banned @habibatify_twitter
  • May 06 21:25
    @MadLittleMods banned @amanmahendra00_gitlab
  • Apr 30 15:20
    @MadLittleMods banned @Baranov1D_twitter
  • Apr 27 05:45
    @MadLittleMods banned @zhonghuacx
  • Feb 19 00:49
    @MadLittleMods banned @Whats-In-My-Vape_gitlab
  • Oct 13 2018 17:05
    @InternetUnexplorer banned @akhilreddy4245
  • Aug 20 2018 13:56
    @InternetUnexplorer banned @JMP2DIS
  • Jun 26 2018 09:23
    @MadLittleMods banned @chinedu69931716_twitter
  • Jun 16 2018 16:41
    @InternetUnexplorer banned @mewovi21_twitter
  • Jun 08 2018 02:57
    @MadLittleMods banned @VPB_COM_twitter
  • Jun 05 2018 23:12
    @MadLittleMods banned @LWSS
  • Jun 04 2018 17:35
    @MadLittleMods banned @Dreamboy6668_twitter
  • Jun 04 2018 17:34
    @MadLittleMods banned @javaaltu1_twitter
  • Jun 04 2018 17:33
    @MadLittleMods banned @alam110
  • Jun 04 2018 17:33
    @MadLittleMods banned @MixedVideo_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @Hakmabhai1_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @raza_shahjad_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @simarjeetsohna_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @malikbila5_twitter
tundeiness
@tundeiness
@jgonggrijp thank I will check it out
tundeiness
@tundeiness
..
Engjell Bislimi
@Engjell00
Hello, anyone has an idea when I try to print my html. I have added a content logo on my print page. The first time I click print , the logo doesnt display but if I close and reprint again it will appear just fine
Julian Gonggrijp
@jgonggrijp
@Engjell00 I have no idea, but maybe it's worthwhile to check whether other browsers behave in the same way.
Engjell Bislimi
@Engjell00
@jgonggrijp on Mozilla , the logo is displaying . google chrome the logo isnt displaying
Mark Carpenter Jr
@mcarpenterjr
@Engjell00 You can force chrome devtools to debug printing, https://developers.google.com/web/tools/chrome-devtools/css/print-preview
Are you using the @media print css query?
rikboersma
@rikboersma
yo anyone knows how to include references to GIT?
Julian Gonggrijp
@jgonggrijp
@rikboersma you mean to GitLab/GitHub/bitbucket commit webpages here on Gitter? Just paste the page URL and it will be shortened automatically.
Saurabh Rai
@srbhr
Hey! Everyone! How are you guys?
I just want to ask y'all that has anyone felt like there is so much to learn and do and still I'm unable to do it ?
Like I'm a Python Developer, with skills in Machine Learning and Related frameworks. I want to expand my knowledge about it, do more things, but I feel stuck in between.
And yes, by googling and going over some blogs and all, I found out that I can contribute learn and do stuff while learning and being a part of the community as well. And I want very much to be a part of it, but I don't know where to start? Can anyone guide me on this ??
giannisjome
@giannisjome
Hi, anyone who has experience with Google Charts?
sebbu2
@sebbu2
choose a lib/framework, read the doc, install it, test it (demo/example project)
maybe see if there's presentations or videos (conferences) or books about it
Julian Gonggrijp
@jgonggrijp
@srbhr :point_up: December 10, 2019 4:04 PM
I think the key realisation to make is that you have already started. If you are currently developing software, you are both learning and contributing. This will just go on as long as you develop.
Saurabh Rai
@srbhr
Thanks guys! I will surely try it out.
Josebuendia
@Josebuendia
Why do many Javascript use Get Element by ID and not by class?
https://www.codexworld.com/how-to/toggle-show-hide-element-using-javascript/ Can you do this using h tags and not button tags?
Julian Gonggrijp
@jgonggrijp

@Josebuendia

Why do many Javascript use Get Element by ID and not by class?

Because you often want to target a unique element. Using a class name to target a group of elements that have something in common is perfectly fine, though.

https://www.codexworld.com/how-to/toggle-show-hide-element-using-javascript/ Can you do this using h tags and not button tags?

You can do this with every type of element.

andrew moshi
@andrewemoshi_twitter
hello guys.. am doing code and having a challenge on javascript function.. need abit of help to understand
dimtabu
@taburetkin
in terms of reusable components using id attribute for selecting nodes is not safe
How do I make it do that?
Julian Gonggrijp
@jgonggrijp

@taburetkin :point_up: December 11, 2019 2:04 PM

in terms of reusable components using id attribute for selecting nodes is not safe

Unless you have a way to generate unique IDs. I sometimes use a {{cid}} in templates for my Backbone views.

dimtabu
@taburetkin
@jgonggrijp i suppose that you know how to use or not to use id attribute :)
i saw a lot of times when someone just don;t understand how it works
Julian Gonggrijp
@jgonggrijp
@Josebuendia :point_up: December 11, 2019 8:25 PM
I think you need to start by checking your code for syntax errors. I saw orange highlights in your HTML because of unmatched tags, a lot of the JS is commented out and the result panel has a lot of verbatim JS code which I presume isn't supposed to show up there.
dimtabu
@taburetkin
personally, i never used it in my apps. i just never need it. but of course there are to many ways
Julian Gonggrijp
@jgonggrijp
@taburetkin You have a point.
Miguel Angus Baracal
@angusbara_twitter
Hi
andrew moshi
@andrewemoshi_twitter
hello. my name is andrew new to programing
Julian Gonggrijp
@jgonggrijp
@andrewemoshi_twitter Welcome to programming!
kexttt
@kexttt
This message was deleted
Saurabh Rai
@srbhr
As developers what's your daily routine when learning as well as managing other things ? Like doing Job/Chores/Work etc. and taking out time for learning new things, and projects
Roger Ostrander
@rostrander_gitlab
@srbhr It comes down to time management. Ideally, your side projects are also your 'learning new things', so you can double up there. And taking a break from the computer to stretch is very important for health; I personally use that time to do some minor chores around the house.
basheerOct
@basheerOct
Can anyone please explain to me the following?
image.png
image.png
Roger Ostrander
@rostrander_gitlab
@basheerOct So for something like that (or, really, any project) the key is to break it down into as simple steps as possible. And I mean really simple. Like, if you don't know where to start? Literally write a 'hello world' program, having something that compiles really helps break the sort of "blank screen writer's block" effect. From there, have it get the inputs it needs. So first have it get the input for n (and feel free to print out tons of stuff as you go so you can tell things are going as you plan), then have it get an input for the size of the array to follow. Then allocate an array of that size. Then fill the array with those numbers, and so on.
basheerOct
@basheerOct
@rostrander_gitlab Thank you for your reply. I literally didn't understand the question as I used to solve many problems in a week but I got stuck with this one for the last 3 days. The samples are quite vague so as the question.
e.g For the following sample it requires 11 intervals
affected = [1, 2, 2, 2, 2, 2, 2, 2];
poisonous = [3, 4, 2, 22, 2, 2, 2, 2];
I can't see it's even possible to generate 11 but rather just:
(1), (1, 2), (2), (2, 3), (3), (3, 4), (22) Or may be I didn't get the question
Roger Ostrander
@rostrander_gitlab
So I'm not sure why it's using the word 'interval' since that doesn't really make sense to me. If what I'm reading from the example is correct, you really just want to know what sets of bacteria won't end up with one of them dying.
Saurabh Rai
@srbhr
@rostrander_gitlab thanks, for the insights.
Roger Ostrander
@rostrander_gitlab
@basheerOct You're not wrong to think that's really strangely worded and opaque :)
@basheerOct I think the reason it's putting such strange restrictions on the 'intervals' is just to save you some work. So given:
affected = [1,2]
poisonous = [3,4]
Then all the intervals that live are [ (1), (2), (3), (4), (1,2), (2,3), (3,4), (2,3,4) ] - but you could theoretically include (4,1) in there since that set also lives just fine. Thus the additional rule that the interval has to be in order and not just one of the other intervals mixed around
basheerOct
@basheerOct
@rostrander_gitlab If you could see in the question, they are asking for the contagious intervals rather so (4, 1) is not acceptable I think
Roger Ostrander
@rostrander_gitlab
I'll admit I'm not fully understanding all of it either. Like, in your example, (2) doesn't work because it's poisonous to itself :)
And yeah, the contiguous requirement would rules out (1,4) as well, good point
Ugh, and in that picture there's an implied sample '4' that's never actually input anywhere, you just have to interpolate it.
Everything about this challenge is crazy. If this isn't homework, I highly recommend finding a better explained exercise :)
basheerOct
@basheerOct
@rostrander_gitlab Nop the test is from a company that I'm applying for but literally this just sucks. I've got two successful submission but got stuck with this