All Questions

2
answers

How to change the default colors of the options of a select?

What I would like to do is that the drop-down list that comes out of a select that in this case would be a set of options , have a different background color and when they are passed over it modify the key of it. CSS code:...
asked on 09.02.2017 / 20:50
1
answer

How to detect the user's language and do one thing or another?

I just need to know if it's English go to url2 and if it's Spanish url. I have some layout with strings in Spanish and English and I know how to use them so that it comes out depending on the language of the user, but being a URL, I am not able...
asked on 05.02.2017 / 09:09
3
answers

Writing arraysList in txt java files

I am trying to write an arrayList in a text file with this function: String ruta = "C:\Users\usuario\Desktop\archivo1.txt"; File f = new File(ruta); FileWriter fw = new FileWriter(f); BufferedWriter escritura = new BufferedWrit...
asked on 16.02.2017 / 11:04
1
answer

Routing Vagrant

I'm starting with Vagrant and I think I'm a bit lost. I tell you the scenario, to see if you can guide me in a correct way. 2 environments with 2 online machines: staging production These 2 machines have GIT installed. We are 4...
asked on 13.02.2017 / 16:16
2
answers

How to build a URL relative to the port but the same hostname?

I have made a front application with angularjs and I start it with Grunt. On the other hand I have the Back part that I raise it with a Tomcat v8.5 Server. To make the calls to back I use $ http of AngularJS using the routes that have provide...
asked on 16.02.2017 / 11:52
1
answer

where is the error? exchange of variables

Sorry but I'm new to c and I have to solve this exercise    Write the code of the program that requests the value of two integers and exchange them later, showing both the initial value of each variable and its final value. But when runni...
asked on 09.02.2017 / 03:47
3
answers

Load a table with data

Working in ASP.NET MVC 5 I want to populate a table with data that a list brings me. table HTML <table class="table"> <tr> <td>ProveedorId</td> <td>Razón Social</td> <td>...
asked on 13.02.2017 / 19:47
1
answer

Uncaught SyntaxError: Unexpected identifier in a setTimeout ()

I dynamically load the following file: full.js window.APP = { SKIN: 'FSKIN', Run: function( ) { var layout = { }; console.log( 'Lanzando <full>' ); debugger; setTimeout( window.SPINNER.stop( ), 2000 ); } }...
asked on 15.02.2017 / 07:04
1
answer

How to use the LIKE with a DATE_FORMAT?

I have a query where I need to do a LIKE in WHERE indicating the current date. It's this: SELECT orden FROM tareas WHERE tipo = "Dos" AND (fechaCierre IS NULL OR fechaCierre LIKE DATE_FORMAT(NOW(), '%Y-%m-%d')) Of course,...
asked on 19.10.2018 / 09:00
1
answer

How to detect operating system with C preprocessor

I would like to do a program but there is a code that works only on Windows and another on GNU / Linux, I would like to know how I can use the preprocessor macros to do this, read something about it, that proposed this example : int main() {...
asked on 15.02.2017 / 22:36