All Questions

1
answer

How to modify a .txt file from c ++?

I want to modify a file .txt from a program developed in c++ , I already have a developed code that creates the file and also reads it, but it does not modify it and I can not find how to do it. My code is as follows: #include...
asked on 20.08.2016 / 23:00
7
answers

Get Foreach index in C #

Normally I do iterations using the control statement for and so I get the index of the iteration easily, but the question I have is, is there any way to get the index of the iteration in a foreach c# ? since I usually tak...
asked on 09.05.2016 / 23:27
3
answers

Replace value in PHP array and call it later

I have a query and it is as follows. My goal is to replace the values of all fruits to increase the price by 5%: // precios originales $precios = array ( "frutas" => array ( "manzanas" => 15, "peras" => 5, "naranjas" => 3...
asked on 11.02.2016 / 02:28
3
answers

When comparing two equal Booleans it returns true but not when comparing two equal objects no Why?

In the following code, the Boolean function is used to return a value. If a strict comparison is made of the result of two functions that return the same value, the result is true, but if two objects created by using new Boolean are compared, th...
asked on 11.07.2017 / 16:46
1
answer

Referencing a Java Control with a String

I have a array string with the names of controls Label and I want to reference them by that name. Or what is the same, I want to pass a String to a control Label . For example, in VBA it would be like this: for i=0 t...
asked on 01.04.2017 / 19:21
2
answers

How to transform base64 image to File?

I am generating a canvas within my application, then I would like to upload what is believed in that canvas as a% png image to my server. The problem I'm having is that it goes up, obviously with weight but the image can not be seen. The can...
asked on 09.03.2017 / 20:43
3
answers

Google maps is not shown on the server but on the local

I want to show a map with some locations for this I use the library gmaps js link And everything works fine on my computer, but when I upload it to my server it sends me the following error    common.js: 48 Uncaught TypeError: Can not re...
asked on 06.07.2016 / 06:07
1
answer

Take coordinates of different div with drag and drop JavaScript

I'm doing a project in which I manage drag and drop of JavaScript . Now I have the dividers that crawl but they ask me to draw the coordinates x,y of each and that's where the problem lies: I do not know how to do it because when dr...
asked on 01.03.2017 / 18:26
2
answers

Slider JQuery UI - Smooth movement

I have included the following slider , but I can not find the options so that it does not move with the steps , that is, from one point to another abruptly since there are not many values, but I can move it from soft way. JSFiddle...
asked on 13.01.2017 / 12:35
2
answers

C ++ Problem printing matrices

I want to do this problem: link    Problem       Given a square matrix of size "n", you must do   that your program turns it 90 degrees to the right.       Original matrix 1 2 3 4       Matrix Rotated 90 ° to the right 3 1 4...
asked on 06.10.2016 / 05:02