All Questions

12
answers

How to correctly compare Strings (and objects) in Java?

I am creating a mini game in which the user tries to guess a name. But when I want to compare two text strings to see if they are equal it does not seem to work. final String miNombre = "Jordi"; Scanner input = new Scanner(System.in); System.o...
asked on 02.12.2015 / 12:35
3
answers

What does '& quot' mean in the code?

My code was like this <button onclick="document.getElementById('myImage').src='pic_bulboff.gif'"> Turn off the light </button> and the next time I checked I found this: <button onclick="document.getElementById(&quot...
asked on 10.08.2018 / 14:20
2
answers

CheckBox Angular 4 ngfor problem when selecting

I am designing a Modal with boostrap and inside it I have a checkBox list that is loaded by running an NGFOR. The problem is the following: At the time of selecting one of those elements all the checkboxes are selected, besides I do not have...
asked on 25.07.2018 / 11:12
1
answer

Obtain current img src from a slider

I am developing a gallery as a slider, I have achieved the transition function, but I want to make a fullscreen but I can not capture the src of the current img, I always capture the first one. var interval = undefined; $(document).read...
asked on 01.07.2016 / 21:05
0
answers

Redirect url in htacces with tilde

I want to redirect a url with a tilde to another with the same name, but without the tilde. I do not have much idea, but I tried to do this:    RewriteRule ^ ([^ o] ) or (. ) $ $ 1o $ 2 I've also tried:    RewriteRule ^ ([^ 'or']) '...
asked on 06.08.2018 / 15:18
2
answers

Change StatusBar color and how to setAlpha

Well, I've been trying for a while to put the alpha to the status bar but I can not do it, I want to do as well as the toolbar with setAlpha () toolbar.getBackground().setAlpha(intColor); but can not find a similar property for the status b...
asked on 18.06.2016 / 12:36
1
answer

Android does not get push notifications

When trying to receive notifications in Android the following error is generated:    Failed to solve target intent service, skipping classname enforcement   Error while delivering the message: ServiceIntent not found. I have check...
asked on 23.06.2016 / 17:46
1
answer

What is the difference between JIT and AOT in Angular

I have been investigating this issue but I still can not find a clear answer about the difference, that is to say I basically understand that they compile at different times and this improves the performance in AOT, with this it is enough to use...
asked on 10.08.2018 / 14:24
1
answer

Send and get array of arrays js in servlet

I want to send an array of arrays to a java servlet via ajax, receive that data and go through it. Ex: var datos=[[1,2,3],[4,5,6],[7,8,9]]; $.ajax({ url: servlet, dataType: 'json', type: 'post', data: { lista: datos }, succes...
asked on 24.06.2016 / 16:22
1
answer

Color on the buttons of the Android notification

I have the following notification, and I would like to put a background color to the buttons that say accept and read more. How do you set them?    NotificationCompat.BigTextStyle style = new NotificationCompat.BigTextStyle (); style.s...
asked on 20.06.2016 / 17:09