All Questions

3
answers

Detect status of Caps Lock in c #

I have a password field in a Windows Form of C# and I need to show the user an alert if the CapsLock function is enabled. How can I detect if the CapsLock function is activated?     
asked on 27.07.2017 / 13:36
3
answers

What is the correct contentType for JSON?

I see that you can use several but I do not understand their differences or when I should use one or the other, for example: text/javascript text/x-javascript text/x-json application/json application/x-javascript     
asked on 26.01.2016 / 18:04
4
answers

Scroll modify the scroll, how to do it?

I did this, what it basically does is hide the scroll, is there another way to do it? div { overflow: hidden; width: 188px; } .barra { height: 80px; overflow: auto; width: 208px; border: 1px solid gray; } <div&...
asked on 15.04.2017 / 14:39
3
answers

Deleted data in SQLite android

I had a problem with my bdd in android apparently everything is due to how I have structured the part of onUpgrade @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE I...
asked on 14.02.2017 / 08:35
5
answers

what is the difference between using $ (). val () and document.getElementById (). value; in javascript

Well I'm a bit confused about how to get the value of the fields in Javascript, I've seen that many times you get using the code: document.getElementById("elemento").value; and others using the code: $(elemento).val() What is the diff...
asked on 13.07.2017 / 21:38
3
answers

Print edges of a c ++ matrix

Community, I ask for your help with a small problem. I'm just learning C ++ and I've been working with arrays and arrays, I understand the logic of how to print a matrix and how it goes through its contents, but there are things that I can not s...
asked on 05.04.2017 / 20:16
3
answers

URI is not hierarchical (JAVA)

I'm having a very uncomfortable problem. Generate a test JAR executable file, and it is generating the following error: Exception en thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.<...
asked on 27.01.2017 / 20:37
2
answers

Differences between .map and .flatMap?

I am working with Streams (Java 8) and when I use the .stream() method it is not clear to me the difference between .map and .flatMap . What are the differences between these methods?     
asked on 04.04.2016 / 13:41
5
answers

Is it possible to differentiate selectors with only $ (this)?

I have this piece of code: $('#btn_1, #btn_2').on('click', function() { // Button 1 let btn1conSpan = $('#btn_1 span'); // Button 2 let btn2conSpan = $('#btn_2 span'); console.log(btn1conSpan.text()); cons...
asked on 17.02.2017 / 23:16
3
answers

Go through a range of jquery elements

How to go through a range of elements, for example starting from id p2 to id p7 and modifying the text of each of the elements that I visited, I do not have the remotest idea of how to do that. If you could give me an idea or provide an example...
asked on 25.09.2016 / 16:58