All Questions

2
answers

PHP readfile prints file on screen

I'm trying to download a file from the server in PHP, I'm working with Wordpress, this is my code <?php // Genera la descarga del convenio colectivo de trabajo $dirBase = $_SERVER['DOCUMENT_ROOT'] . "/wp-content/themes/accelerate/c...
asked on 24.10.2016 / 15:52
1
answer

How to make mix of MVC Razor and javascript when there is "}"?

I have a list of objects that I send to view to show images as a book, so I do a mix of razor with javascript , but it gives me an error by the } keys. Code: <script type="text/javascript"> $(document).ready(fu...
asked on 28.10.2016 / 00:30
3
answers

Load bitmap with Glide

I am trying to load a Bitmap with the Glide library but there is no method to load it and in the documentation I did not find it either. I've been looking for more sites like English EO and I found several posts but I did not get to understan...
asked on 25.10.2016 / 09:57
1
answer

syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

I get this error in php when I want to make a query by date someone knows where the error is, I can not find it. $consulta1+="year(cast(cast(fch as datetime)-1 as date))= " .$anio1 "and month(cast(cast(fch as datetime)-1 as date))= " .$chkBox....
asked on 05.10.2016 / 16:38
1
answer

Written line is too long - CMD

I try to make the following command in CMD to save% PATH% with line breaks in a text file. "@echo. %PATH:;= & @echo.%" > path.txt With this I try to do it with line breaks to then make an findstr from that file. But I get error The w...
asked on 29.09.2016 / 21:40
2
answers

Random error when traversing a json in a javascript function

I have an error of: data [key] .forEach is not a function. but it is totally random, sometimes perfectly executes others not. This is my code: <script type="text/javascript"> $(document).ready(function() { var table = $('#example'...
asked on 26.10.2016 / 21:23
1
answer

PHP error in wordpress when using the command use

I add a code that uses the following string in the functions.php file use Google\Spreadsheet\DefaultServiceRequest; And when I save the file it gives me an error: Parse error: syntax error, unexpected 'use' (T_USE) I use composer and the...
asked on 03.10.2016 / 16:28
2
answers

Call an AppDelegate.swift function from a .m file. Objective-c mixed with swift

I'm doing an app in swift , but I had to use a library that is only in objective-c , so I had to create a file .h and another file .m The problem is that from the file .m I have to call a function of AppDel...
asked on 29.09.2016 / 11:41
3
answers

ERROR TO CORRECT MY PROJECT (Error: A JNI error has occurred, please check your installation and try again)

When I try to run my test project (Selenium and testNG) I get this error: Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterEx...
asked on 29.09.2016 / 16:19
1
answer

Assembly Loop Cycle, from 0 to 9?

Good, I have to do a cycle in assembly language from 1 to 10 that shows the numbers, I already have the cycle but I do not know how to make the interruption to show the numbers on the screen, the cycle is as follows: Assembly .model small...
asked on 30.09.2016 / 22:52