All Questions

2
answers

TypeScript default constant export

We have a TypeScript library that we are publishing to a private NPM environment and we want to use it in other projects whether they are in TS, ES6 or ES5. Let's say that the library is a npm package called foo , whose main file works...
asked on 23.09.2016 / 11:28
1
answer

Laravel primary key

How can I change the primary key in laravel by default? <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddSubcategorias extends Migration { publi...
asked on 31.05.2017 / 23:23
2
answers

Clean the console after each execution of the main while

Good friends. The fact is the following, I have a small code of the game hanged, nevertheless every time that its main function is executed it goes advancing downwards leaving the previous action above as it is typical in the terminal. I would l...
asked on 20.05.2017 / 00:42
1
answer

You can force the application, take photo with flash and other without flash

I am developing an application which uses the camera to detect diseases or problems in the gums, use opencv for the detection process, the problem is to capture 2 different photos, that is, one with flash and another without flash and so that no...
asked on 03.09.2016 / 00:19
1
answer

Laravel Builder could not be converted to string

I try to update two tables Meter and Order Installation , edit method receives the ID of the installation order, which is supposed to get the meter number, actually if I do dd ($ idmeter); the number is shown, but when I try to get the Met...
asked on 24.05.2017 / 23:01
5
answers

How to find a string within a list

In this code, what I need is to compare the movie string to the attribute of all the objects in the Movie class, and if it finds it returning a Boolean, but somehow it does not, can you help me and see what is wrong? . Thanks public clas...
asked on 26.05.2017 / 18:37
1
answer

Kill a thread on Android onBackPressed ()

I am trying to kill this thread as soon as I press the back button. But in "HiloConsumo" it does not pick up the reference of the thread new Thread("HiloConsumo") { public void run() { while (true) {...
asked on 17.05.2017 / 19:51
1
answer

Problem when scanning Wi-Fi networks on Android

I'm trying to scan the available WiFi networks. I just need a list with their SSID, but the application stops when it reaches this.wifilist = this.wifiManager.getScanResults(); I would appreciate if you throw me a little hand, I'm quite n...
asked on 17.05.2017 / 18:05
2
answers

CSS error when applying events to buttons - jQuery

I'm doing an image viewer with four buttons (First, Previous, Next, Last). Initially, an image is loaded randomly (I have them stored in a folder called "images"), and then we can move through events of those four buttons. Why do not I app...
asked on 30.05.2017 / 13:18
1
answer

Error getting names with apostrophes when using regex java android

I have a problem with this regex code to get text strings with apostrophes obtained through streaming. The code I use is this: public static Map<String, String> parseMetadata(String metaString) { Map<String, String> metadata =...
asked on 20.05.2017 / 01:23