All Questions

3
answers

Authorization of users to actions that use the Authorize attribute

I put [Authorize] in my controllers and entered this code: <authentication mode="Forms"> <forms loginUrl="/Login/Login" /> </authentication>' For every time code 401 occurs it redirects to the login page, but I...
asked on 18.11.2015 / 17:20
1
answer

Difference between using SQLiteConnection and DriverManager Java

I'm connecting to the Sqlite database with the following code: import org.sqlite.SQLiteConnection; public SQLiteConnection conn() throws SQLException{ String path = System.getProperty("user.dir"); try { return new SQLiteConnection...
asked on 26.06.2017 / 18:43
1
answer

What is the difference between a DLL produced with C ++ and a C #

After some time searching, I did not find any results for this issue, the existing MSDN topics also did not return anything regarding the support of the 2 in Windows. In short, the question is, what's the difference after compiling a DLL prod...
asked on 17.11.2015 / 12:20
2
answers

What is the use of 'SELECT 1'?

I am making a query using NOT EXISTS in a college job. The situation is as follows: 1.14 - Design the CPF and the amount payable in rents for customers who have rented media and have not yet made any payment. The query performed and...
asked on 02.11.2015 / 00:10
1
answer

How to get the battery percentage?

How do I get the battery percentage and report on a battery-style chart?     
asked on 11.09.2015 / 03:40
1
answer

With an iterator / generator in javascript?

In PHP we have the Iterators and the Generator . Example Iterator: $f = new FileSystemIterator(__DIR__); foreach($f as $file) { echo $file->getFilename(); } Example Generator: function sequence($start, $end) {...
asked on 08.10.2015 / 17:06
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked on 18.10.2015 / 00:46
5
answers

Problem with in_array ()

I have a problem with the in_array function. I made a var_dump() in the array I want to search for: array(2) { ["28c8edde3d61a0411511d3b1866f0636"]=> array(8) { ["id"]=> string(32) "c4ca4238a0b923820dcc509a6f75849...
asked on 11.11.2015 / 10:54
1
answer

What are the suffixes of NPM versions and what do they do?

In Node.js environment when we are going to get modules from NPM you can use suffixes to specify versions . For example, in package.json I see many times: "dependencies": { "async": "~1.4.2", "express": "^4.13.3", What...
asked on 05.09.2015 / 22:39
2
answers

What is the __init__.py file used for in modules in python?

I'm starting to work deeper with Python and have noticed many projects with __int__.py files in folders, and are often blank. What is the purpose of these files?     
asked on 05.11.2015 / 23:25