All Questions

2
answers

How to permanently remove a project in Android Studio?

I would definitely remove an Android Studio project, I realize that on the home page below, if I have a project selected and hit Delete, the project is removed from the list, but I still find it in my projects folder. I wonder if there is a more...
asked on 02.09.2015 / 16:17
2
answers

Mock of static method with Demoiselle and PowerMock / Mockito

I'm trying to mock a static method, but PowerMock requires the use of a specific Runner (PowerMockRunner) for mock static to work! And for Demoiselle to work you have to start Weld with DemoiselleRunner, but the JUnit API only accepts a singl...
asked on 11.02.2014 / 14:34
1
answer

Uploading multiple files in PHP

I'm developing an application in PHP where import of NF-e will be done in XML format. The problem is that the client will do this import of multiple files at the same time, and I will have to take the data of each file and go inserting some...
asked on 11.02.2014 / 17:44
1
answer

Error adding value in array, repeated values

I have two arrays, A and B. I have created 3 functions in which I take a value from the beginning of array A and array B, remove the values, compare the values and if the value of A is greater than B, I add the 2 values at the end of array A,...
asked on 23.03.2018 / 21:59
2
answers

What's the difference between namedtuple and NamedTuple?

The module documentation typing states that the two code snippets below are equivalent. Using typing.NamedTuple : from typing import NamedTuple class Employee(NamedTuple): name: str id: int Using collections.na...
asked on 08.06.2018 / 20:32
1
answer

Daylight Saving Date Conversion

Currently on my system I use the following code, to convert the dates coming into ajax. new Date(parseInt(data.replace(/\/Date\((-?\d+)\)\//, '$1'))) Since the variable data is a string that comes in '/Date(1508551200000)/'...
asked on 21.03.2018 / 21:04
2
answers

Animation with JavaScript / jQuery [closed]

I have this html: Iwouldlikethefollowingtoappearwhentheuserdrags: Whenyoudragagain,disappear...HowcouldIdothiswithJavaScript/jQuery?Followthecode:<divstyle="width: 100%; overflow-x: hidden;"> <div class="item-total"&...
asked on 14.11.2018 / 16:52
1
answer

Django 'bool' object has no attribute '_committed'

I have a field of type FileField and when I try to delete the contents of it, it returns me this error message: ´bool' object has no attribute '_committed' To upload normally, the problem is only when I try to remove the uploade...
asked on 11.02.2014 / 17:35
2
answers

How to allocate program memory and storage before running my application in WinCE?

I am reprogramming a C # application to run on Windows CE, however, my machine has little memory. Therefore, I need to allocate the appropriate amount of program memory and storage memory. I can not allocate this manually at every reboot, so I f...
asked on 11.02.2014 / 17:49
1
answer

Problem creating "Zend_Session"

I'm trying to create a session in Zend as follows: if (isset($_POST['login'])) { Zend_Session::start(); $session = new Zend_Session_Namespace(); $login = explode('-', $_POST['login']); $codigo = $login[1]; $banco = $admi...
asked on 24.01.2014 / 00:05