All Questions

2
answers

Why does not my image appear when I run the app?

I have the following xml code in Android Studio: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app = "http://schemas.android.com/apk/res-auto"...
asked on 27.10.2016 / 02:38
1
answer

How to make GET / POST request with Node.JS?

I need to make a request both post and get from a REST API, I wanted to know how to make the request with Node.js? I found some articles on the internet but nothing succinct.     
asked on 01.01.2017 / 04:32
1
answer

Redirect extensions and folders with .htaccess

I'm in all ways trying to create a redirect with htaccess and I got it like this: <ifModule mod_rewrite.c> RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d Options +FollowSymLinks RewriteCond %{REQUE...
asked on 21.05.2015 / 00:59
1
answer

Return last value entered in the table where the value is not identity?

I would like to return the last value of the primary key inserted in the table, but my primary key is CPF so I can not use SELECT SCOPE_IDENTITY() .     
asked on 24.04.2017 / 16:24
2
answers

How to separate a string into pieces?

In other languages there is split , explode or something similar that chucks string into chunks according to some separator. Is there something C ready or do I have to do on hand?     
asked on 17.03.2017 / 12:20
1
answer

How to log in without using the Identity pattern?

An update on Api of Facebook made the default login form of Identity stop working. The way I'm doing that stopped working looks like this: public void ConfigureAuth(IAppBuilder app) { app.CreatePerOwinContext(Applicatio...
asked on 30.03.2017 / 01:16
1
answer

Replace anchor by button in form with calculation by javascript

I have the following code: function calc(){ var form = document.getElementById("form"); var a = +form.a.value; var b = +form.b.value; var result = (a+b); form.result.value = result; } <form id="form"> A: <input...
asked on 25.12.2016 / 23:24
1
answer

How to mount a SELECT to return the last status change of each id?

I have the following table: status_faturas id_fatura | status | data ---------------------------------------- XX-XX-XX | 3 | 2017-01-04 21:00:24 XX-XX-XX | 2 | 2017-01-02 11:10:20 YY-YY-YY | 4 | 2017-01-04 21:00:24 YY-YY-Y...
asked on 05.01.2017 / 00:08
1
answer

How to calculate the median when the data is in chunks?

Suppose my data is divided into 2 vectors: x <- c(100, 400, 120) y <- c(500, 112) I could calculate the median, joining the two vectors and then using the median function. median(c(x,y)) [1] 120 Suppose for some reason I c...
asked on 30.12.2016 / 02:08
1
answer

Input type file does not work in webview

I have an HTML page that has a form of uploading images in Chrome on your pc or in any browser works but in my application it has a WebView that opens this page then clicking choose file does nothing. Is it possible to arrange thi...
asked on 16.01.2017 / 17:36